URL of image content in a template with pagination

Author Message

Pierre SCALFATI

Tuesday 22 September 2009 9:05:57 am

Hi all,

I've made 2 templates for my photo gallery:

- One is a folder template which displays each image with buttons "display" and "download".

The other is a template of detail which contains the current image (just one image by page) and arrows at left and at right of the image to allow the navigation between each picture in the gallery. This part works fine (the navigation arrows do their job correctly).

But when I click from the folder template on "display" button to display details of the the image on which I clicked, I get always the same image (the first one). It seems that I always need to declare (offset)/number_of_page in my URL.

How can I make my "Display" button work and display the correct image in my template of detail (which is paginated) without having to specify a number of page ?

Is there something I'm missing ?

Fabien Mas

Tuesday 29 September 2009 6:42:46 am

Hi
It looks like a cache problem

try to put this line at the beginning of your template

{set-block scope=root variable=cache_ttl}0{/set-block}

if it works now, it is a cache problem

Fabien

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.