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.

eZ debug

Timing: Jan 18 2025 11:38:11
Script start
Timing: Jan 18 2025 11:38:11
Module start 'layout'
Timing: Jan 18 2025 11:38:11
Module start 'content'
Timing: Jan 18 2025 11:38:11
Module end 'content'
Timing: Jan 18 2025 11:38:11
Script end

Main resources:

Total runtime0.0173 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 588.0469152.6406
Module start 'layout' 0.00660.0033 740.687539.4922
Module start 'content' 0.00990.0051 780.179789.3828
Module end 'content' 0.01500.0023 869.562530.3047
Script end 0.0173  899.8672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002816.3820140.0002
Check MTime0.00127.2000140.0001
Mysql Total
Database connection0.00169.495510.0016
Mysqli_queries0.002715.477030.0009
Looping result0.00000.099010.0000
Template Total0.001810.410.0018
Template load0.00105.497310.0010
Template processing0.00084.875710.0008
Override
Cache load0.00063.646110.0006
General
dbfile0.00031.711080.0000
String conversion0.00000.046840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs