probleme with a href

Author Message

jb bianchi

Tuesday 30 August 2005 5:32:52 am

hi,

I want to go in a same template by two differents ways.
Fisrt <a href={concat($:item.url_alias, '?cons=1')|ezurl}>{$:item.name|wash}</a>
Secondly,
<a href={concat($:item.url_alias, '?cons2=1')|ezurl}>{$:item.name|wash}</a>

In the template result, I have wrinten
{def cons=ezhttp('cons', 'get') cons2=ezhttp('cons2', 'get')}
{$cons2}=cons2, {$cons}=cons

I clear the cache and back to the first tempate click and see the good url (cons=1 at the end) and on the result template I can see cons=1.

After I go to the second tpl, click and see the good url (cons2=1 at the end of the url) but on the screen I see (cons=1 cons2= ).
If I clear the cache again and go to the result tpl in starting to the second tpl( cons2=1) I see the good url and in the tpl result (cons2=1). After I go to the first tpl(cons=1) click, see the good url but I see again (cons2=1, cons= ).

So there is a cache uri problem but in the pagelayout I have ever write to clear cahce url...
Can you help me please.

Konrad Mazurkiewicz

Tuesday 30 August 2005 6:46:15 am

Hi,
If you want use 'get' variables in templates other than pagelayout you must disable cache for this template, otherwise template will be cached with values fetched from url on first page load.

At the top of template put this

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

Konrad

jb bianchi

Wednesday 31 August 2005 1:24:50 am

thank's,

I will try it.

Peter Garner

Wednesday 30 August 2006 10:16:34 am

Hi Konrad,

can you please get in touch with Peter Garner

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 30 2025 22:22:28
Script start
Timing: Jan 30 2025 22:22:28
Module start 'layout'
Timing: Jan 30 2025 22:22:28
Module start 'content'
Timing: Jan 30 2025 22:22:28
Module end 'content'
Timing: Jan 30 2025 22:22:28
Script end

Main resources:

Total runtime0.0221 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0043 588.0078151.1953
Module start 'layout' 0.00430.0031 739.2031220.6719
Module start 'content' 0.00740.0132 959.8750997.7578
Module end 'content' 0.02060.0015 1,957.632833.9922
Script end 0.0221  1,991.6250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002511.1081140.0002
Check MTime0.00104.7417140.0001
Mysql Total
Database connection0.00073.084710.0007
Mysqli_queries0.00177.714430.0006
Looping result0.00000.035510.0000
Template Total0.00114.910.0011
Template load0.00083.788810.0008
Template processing0.00021.106810.0002
Override
Cache load0.00062.650810.0006
General
dbfile0.002310.349180.0003
String conversion0.00000.032340.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