PDA

View Full Version : limit next and previous to only within the same category


ehdesign
09-04-2008, 01:24 PM
I have most of the functions working on my install of pixel post as I would like.

However, I have one problem that I can't seem to figure out.

When someone views a category - say LAKES. It has 5 photos in it.

When they click on any of the five photos, they go to the main image view. From here they can click on next and previous.

BUT, I would like to limit next and previous to ONLY IMAGES within the same category.

I've managed to add the category id number to the URL as a $_GET variable, but not sure where to go from here, espcially if an image is in multiple categories....

ANy ideas?

Ubbe
09-04-2008, 11:08 PM
there's an addon which solves this as far as I recall.. it's an addon which offers a complete browse view including tags for "tags" as well as categories.

I'm not 100% sure though, and I can't come with a specific name atm, but you can take a look for it in the addons section, otherwise I'll try to find out what it's called and return to you asap.

ranmajen
09-05-2008, 01:31 AM
should be geos-show-category
http://www.pixelpost.org/extend/addons/geos-show-category/

hope it can help.

ehdesign
09-05-2008, 11:35 AM
ranmajen -

Thanks for the lead. It is exactly what I need. I'm making a few mods to the database calls to work a little better for our application. But this is perfect.

I swear, I walked through that add on section numerous times - and never saw this one.

I love open source help - you found the answer while I was sleeping.

Thanks again.