Tag searching

LoneProspector

Joined: 2014-07-18
Posts: 3
Posted: Fri, 2014-07-18 18:11

Is there a module out there which allows for tag searching? Or is there a setting I am missing in the admin settings? Most of my images are not accurately named (I am creating a gallery for my ad agency, we have tons of images and it is not possible to rename them all), so I need to rely on tag searches, not image name searches, for better functionality.

Any help or direction would be appreciated.

 
tempg

Joined: 2005-12-17
Posts: 1857
Posted: Sat, 2014-07-19 17:37

The "regular" (default) search already searches tags (in addition to other fields--including the image title).

If you need to exclude the image titles from search, you'd have to custom edit G3 (not the search module) and the way it creates the search cache fields.

Best option is, of course, to deal with the bad image names.
You could easily use an automated script to quickly rename the images to something that doesn't conflict with your search-specific wordings.
You could also edit G3 to create the image title from some other field (maybe using a static prefix + a sequential key?).

(I'm not 100% sure if by "image name" you really mean the image title, or if you really mean the file name, but everything above applies either way.)

EDIT: Actually, I think you could do it just modifying the search module and the fields it searches. Editing the search module may be better if you're ONLY searching the tags field, but NOT if you're going to search multiple fields.

Anyway, changing the image/file names/titles is the best bet. (Kudos to @floridave for pointing out the modules below.)

Report back if you get stuck somewhere.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2014-07-18 19:50
Quote:
and it is not possible to rename them all

http://codex.galleryproject.org/Gallery3:Modules:mass_rename
and its sister module
http://codex.galleryproject.org/Gallery3:Modules:ARTFU

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team