Announcement

  •  » Requests
  •  » Tags/Keywords - need for range search

#1 2019-02-07 18:05:37

naponline
Member
2014-10-14
6

Tags/Keywords - need for range search

Hello,

With my Piwigo site I alway add keywords referring to years (from 1789 to 1816) ... so it is easy to get results like "show me photos with keyword ='1800'" but I would also appreciate to allow searches of the manner "show photos between '1800' AND '1805'".

I hope you get my apply - perhaps there's an extension I don't know to use; if not perhaps it is a valuable addition for the next releases?

Thank you ... kind regards from Berlin
Markus Stein

Piwigo version: 2.9.4
PHP version: 7.1.26
MySQL version: 5.5.60
Piwigo URL: http://uniformenportal.de

Offline

 

#2 2019-02-07 20:40:25

executive
Member
2017-08-16
474

Re: Tags/Keywords - need for range search

I don't think this will be added. It's not a good way to do it because Piwigo treats tags as text. It doesn't understand what they mean.


Here is a better solution:
Install the Smart Albums plugin. Create smart albums. Add filters:

method 1: Add tag filters for each year you want to include: "1800", "1801", "1802" etc.

method 2: Change the add or creation date of photo to reflect the year that you want. Then use a date filter "after date x" and "before date y"

Last edited by executive (2019-02-07 20:42:04)

Offline

 

#3 2019-02-08 16:29:03

naponline
Member
2014-10-14
6

Re: Tags/Keywords - need for range search

Thanks for your answer - o.k. the change of text to searchable dates is not easy but a search of text tags would work if "1800" can be treated as less than "1801" in case of the character order.

Your advices are good, but I fear I should have asked earlier as I've more than 2,000 photos in my Piwigo-library.

Kind regards
Markus Stein

Offline

 

#4 2019-02-09 01:20:52

executive
Member
2017-08-16
474

Re: Tags/Keywords - need for range search

naponline wrote:

a search of text tags would work if "1800" can be treated as less than "1801"

But it isn't treated that way. You cannot perform math on text strings without adding a lot of programming, and it's just not worth it. I have not seen ANY software that is able to do what you say.

It would be much easier to use a program to filter all images by a tag , and then batch change the dates.

Offline

 
  •  » Requests
  •  » Tags/Keywords - need for range search

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2019 · Contact