Announcement

#1 2019-04-04 17:43:30

telemach
Member
2019-04-04
48

How to search by selecting multiple keywords ?

Hi,

I am trying to figure out a way or plugin to search by selection from all possible keywords.

What is displayed on tags.php is limited because I can only click a single keyword and it redirects me immediately. Instead of links some sort of submit form with <input type="checkbox"> would be much better.

I know there is 'Search keywords' option in search.php but it has only dropdown list and having houndreds of keywords this isn't much convenient.

Piwigo version: 2.9.4

Offline

 

#2 2019-04-04 19:26:28

executive
Member
2017-08-16
1214

Re: How to search by selecting multiple keywords ?

Batch manager allows you to search by keywords. It has a dropdown menu, but you can type them in manually too.

Offline

 

#3 2019-04-04 23:17:00

telemach
Member
2019-04-04
48

Re: How to search by selecting multiple keywords ?

I don't understand

with 'Tag To Keyword' plugin on this page

admin.php?page=tags

I see all keywords and can select/checkbox them and then edit/duplicate/merge/delete
so can't I have this as a standard page with option search/display ???

wouldn't be that easier for visitors ?

Offline

 

#4 2019-04-05 00:30:29

executive
Member
2017-08-16
1214

Re: How to search by selecting multiple keywords ?

I am completely confused.

What exactly are you trying to accomplish?

Offline

 

#5 2019-04-05 00:40:48

erAck
Only trying to help
2015-09-06
1998

Re: How to search by selecting multiple keywords ?

Users can click Menu Search and select from the Search keywords list, it starts narrowing the list as soon as you type, (repeat for multiple), and either All keywords (default) or Any keyword.

Alternatively use the Search for words edit field and check the Keywords box (and maybe uncheck the others).

Last edited by erAck (2019-04-05 00:45:29)


Running Piwigo at https://erack.net/gallery/

Offline

 

#6 2019-04-05 00:59:02

executive
Member
2017-08-16
1214

Re: How to search by selecting multiple keywords ?

ah I see.

Yes, I simply typed "clouds landscape" into my search box, and it showed me all the images containing both those keywords.

Offline

 

#7 2019-04-05 09:55:17

telemach
Member
2019-04-04
48

Re: How to search by selecting multiple keywords ?

Let's say you picture animals so there are hundreds of keywords describing year, location, cat/dog, breed.
If one can see all of it then it's easy to imagine what's available and select certain breeds for available locations and years. Sure you can guess some things like breed but you won't guess location and scrolling thru hundreds of keywords is painful.

As I explained above, parts of it are already in two different plugins so the idea is to combine to one simple page where you see everything, select what you want and click submit.

Offline

 

#8 2019-04-05 10:29:44

executive
Member
2017-08-16
1214

Re: How to search by selecting multiple keywords ?

telemach wrote:

What is displayed on tags.php is limited because I can only click a single keyword and it redirects me immediately

Let's say you click keyword1, and that will display all images containing keyword1.

Then, in the menu there is "Related keywords" showing you all keywords in your selection. Then you click on keyword2 and it is added to the filter.
Then you will see all images with keyword1 + keyword2. "Related keywords" shows you all other keywords contained in your selection.

and so on ...

Offline

 

#9 2019-04-05 10:33:41

telemach
Member
2019-04-04
48

Re: How to search by selecting multiple keywords ?

I am trying to tell you how important is to see all the keywords and then select few and not one and you are trying to tell me that selecting one is the enough or having clutter with dozen related is even better

Offline

 

#10 2019-04-05 10:43:43

executive
Member
2017-08-16
1214

Re: How to search by selecting multiple keywords ?

I'm just telling you what is available. Obviously what you want doesn't exist.

It's not a bad idea. It certainly can be accomplished with a plugin.

Offline

 

#11 2019-04-05 10:46:43

telemach
Member
2019-04-04
48

Re: How to search by selecting multiple keywords ?

so point me to an article how to get keywords from database and use them to initiate the search so I will try do one for myself

Offline

 

#12 2019-04-05 10:55:19

executive
Member
2017-08-16
1214

Re: How to search by selecting multiple keywords ?

are you running Piwigo yourself, or you subscribed to Pwigo.com?


https://github.com/Piwigo/Piwigo
https://piwigo.org/doc/doku.php?id=dev:extensions:start

Last edited by executive (2019-04-05 10:57:19)

Offline

 

#13 2019-04-05 10:57:32

telemach
Member
2019-04-04
48

Re: How to search by selecting multiple keywords ?

I am sorry you didn't understand.

I don't want a link about plugins, I need some guidance in getting keywords from database and using for search.

Offline

 

#14 2019-04-05 11:06:37

executive
Member
2017-08-16
1214

Re: How to search by selecting multiple keywords ?

I understand completely.

If you have a specific question, I'm sure someone can help answer it for you.

Otherwise, I would start look at the source from other plugs to see how they do it.

There is no step-by-step.

Offline

 

#15 2019-04-05 17:18:41

telemach
Member
2019-04-04
48

Re: How to search by selecting multiple keywords ?

OK, I managed to get page with checkboxes, now I need to find a way to execute search with selected tags.

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact