View Full Version : I need previous-Next for the same category
12-25-2006, 09:49 AM
I have been looking if someone else wrote about this problem but I did not find any post about it, so here I will try to describe it:
When I use the previous and next links with each photo, they go to the previous and next photos as they where uploaded to the site.
I found they do: IMAGE_PREVIOUS_LINK and IMAGE_NEXT_LINK from the image_template.html file.
But if I went to that photo from a category selected, I want to see the previous and the next from the SAME CATEGORY, not from all the photos.
I cannot find how to change the command to keep forward and back in the same category I am looking.
Can you help me? Did I explain my problem?
12-25-2006, 10:06 AM
this is possible with geos' category addon.
12-25-2006, 10:08 AM
check out this addon
12-26-2006, 05:35 AM
I have installed the GeoS Show Category ADDON
I watch the example at http://photoblog.sophiepasquet.com/
and that is nice.
I try it with the pixelpost-show-cats template and it works but I had already done my design with the simple template so it would be easier only adding the SC_IMAGE_PREVIOUS_LINK and the SC_IMAGE_NEXT_LINK
Reading the instructions I see that:
"To do so you need to add extra variable to standard URL - category=CAT_ID."
I do not understand where I have to add the extra variable.
It only works with it's own template? Can I add the links to the simple template?
Sorry.... I am not an expert.:confused:
12-26-2006, 07:41 AM
Well... still trying and made a little change:
Instead of SC_IMAGE_PREVIOUS_LINK use SC_IMAGE_PREVIOUS_LINK_TXT
and instead of SC_IMAGE_NEXT_LINK use SC_IMAGE_NEXT_LINK_TXT
so, using the simple template in the image_template.html must be like:
and it seems to work!!! :rolleyes:
anyway.... I still do not understand if I should do another change.
You think I am in the right way? I am testing and everything goes well.
12-26-2006, 08:56 AM
There was a mistake...
To move previous and next in the same category I must go to the photos selecting first a category, so I made a little change also in the browse_template.html
The change is instead of <THUMBNAILS>
I replace it with:
So when I select a category each thumbnail has the link with the category included: index.php?showimage=29&category=10
when I open the photo, the previous and the next links also include the category in the link.....
I think I am on the way now but it is 4 am here in Mexico so I'll better sleep and continue testing latter.
Yes, thats good direction. Today Ill try to write docs to all my addons.
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.