Restrict search to gallery
Freeheelvrmnt
Registered Users Posts: 29 Big grins
I've tried searching for this with no avail.
Is there a way to restrict a search to within a particular user's gallery? I have this search, for example:
http://benjamindbloom.smugmug.com/search/?searchWords=bib189&searchType=InUser&NickName=benjamindbloom&x=0&y=0
I'd like it to show all hits for images tagged with "bib189". However, since I shoot multiple events/year, I'd like to be able to provide a search box that restricts the scope to a particular gallery, using one gallery per event.
Here's the scenario I'm ultimately envisioning, and maybe there's a better solution. When I shoot an event, I tag the images with the bib numbers. I upload the photos to SmugMug and allow competitors to search by their bib number for their photos. I set up some smart galleries to segment photos for browsing for those that don't want to search.
I'm web competent, so making a landing page on a separately hosted site with a search box that calls into an API shouldn't be a problem, if that's an option.
Any thoughts/help? I'm sure there are others doing this sort of thing and I'd rather learn from your experiences.
Thanks!
-Ben
Is there a way to restrict a search to within a particular user's gallery? I have this search, for example:
http://benjamindbloom.smugmug.com/search/?searchWords=bib189&searchType=InUser&NickName=benjamindbloom&x=0&y=0
I'd like it to show all hits for images tagged with "bib189". However, since I shoot multiple events/year, I'd like to be able to provide a search box that restricts the scope to a particular gallery, using one gallery per event.
Here's the scenario I'm ultimately envisioning, and maybe there's a better solution. When I shoot an event, I tag the images with the bib numbers. I upload the photos to SmugMug and allow competitors to search by their bib number for their photos. I set up some smart galleries to segment photos for browsing for those that don't want to search.
I'm web competent, so making a landing page on a separately hosted site with a search box that calls into an API shouldn't be a problem, if that's an option.
Any thoughts/help? I'm sure there are others doing this sort of thing and I'd rather learn from your experiences.
Thanks!
-Ben
0
Comments
searching links to upper pages. Might have to fine tune what pages you want the search showing.
.allusersearch {display:none;}
#mysearch {display:none;}
.galleryPage #mysearch {display:block;}
My Website index | My Blog
So tweaking the CSS would let me restrict where the search is displayed, but would that also restrict the search to that particular gallery?
What I'd love to be able to do is pass a parameter to search by adding something like the gallery name to the search URL, a la:
http://benjamindbloom.smugmug.com/search/?searchWords=bib189&searchType=InUser&NickName=benjamindbloom&x=0&y=0&galleryname=MyEventName
Thanks..
are links to search higher levels but that CSS hides that.
The CSS hides the search box everywhere and unhides it only in the galleries. You can specify which
galleries you want to show it in by specifying each gallery or even only Smugmug style galleries.
Add the CSS and search in the gallery you linked, it gives you exactly what you want. Go to another gallery
and try it there also.
My Website index | My Blog
Want faster uploading? Vote for FTP!
Thanks
Tom
My Website index | My Blog
Sorry! Yes I figured it out later last night, and forgot to come back here to call off the hunt.... Thank you so much for replying anyway!
I do have a follow on question though - How can I get the search results to show in their own gallery, much like clicking on a keyword link. So for example if you go to my MFG Woodland Park 2011 Gallery ( http://www.tpk-photography.com/Cycling/Cyclocross/MFG-Woodland-Park-2011/20126194_RpBxfL#1588658009_9WSKcB5 ) and type Hagens Berman in the search block, you get a search results page that you cannot browse. Clicking on any photo takes you back to the original gallery. However, if you click on the Hagens Berman keyword, you get a slick little gallery of all the Hagens Berman Photos that you can browse through...
Why can't the search box return this web address? http://www.tpk-photography.com/keyword/hagens%20berman-mfg%20woodland%20park
That'd be awesome!
Tom
That's not possible with photo results in search. Sorry.
SmugMug Support Hero