Ezurl .. strange error !

Author Message

Selmah Maxim

Wednesday 21 May 2003 9:51:41 am

i had post befor about path error, i tho that i had done something bad with php code, but i got strange thing with ezurl , look to this code :

{section name=Path loop=$module_result.path offset=2}>
{section show=$Path:item.url}
<a href="{concat($Path:item.url,"/"|ezurl)}">{$Path:item.text|wash}</a>
{section-else}
{$Path:item.text|wash}
{/section}
{delimiter} > {/delimiter}
{/section}

now, with this code the link must look like this :
http://mysite.com/.../node_id
base on the browsed node id

but is always give me the last url for all links, and when i remove ezurl i get the reall links, the right liks, any1 know whay this happening ?

with ezurl i get bad link, without work fine !

Paulo Almeida

Wednesday 21 May 2003 10:42:35 am

HI
I think this will work if you change to this
<a href="{$Path:item.url|ezurl}">{$Path:item.text|wash}</a>
or using concat
<a href="{concat($Path:item.url,"/")|ezurl}">{$Path:item.text|wash}</a>

Hope this resolve you problem

PACPI.COM Internet Consulting
http://pacpi.com

Selmah Maxim

Wednesday 21 May 2003 12:20:16 pm

thx .. now is working ;)

Brian Lack

Tuesday 23 September 2003 5:31:19 pm

You could have fixed it by removing the "quotes" on your href:
<a href={concat($Path:item.url,"/"|ezurl)}>

That worked for me :-)

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:12:12
Script start
Timing: Jan 18 2025 11:12:12
Module start 'layout'
Timing: Jan 18 2025 11:12:12
Module start 'content'
Timing: Jan 18 2025 11:12:13
Module end 'content'
Timing: Jan 18 2025 11:12:13
Script end

Main resources:

Total runtime0.8254 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0085 587.9063152.6250
Module start 'layout' 0.00850.0030 740.531339.4297
Module start 'content' 0.01140.8122 779.9609574.7500
Module end 'content' 0.82360.0018 1,354.710912.4922
Script end 0.8254  1,367.2031 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4139160.0002
Check MTime0.00130.1572160.0001
Mysql Total
Database connection0.00240.284810.0024
Mysqli_queries0.771793.4964620.0124
Looping result0.00070.0839600.0000
Template Total0.790495.820.3952
Template load0.00210.251620.0010
Template processing0.788395.505320.3942
Template load and register function0.00020.025910.0002
states
state_id_array0.00160.189210.0016
state_identifier_array0.00160.190020.0008
Override
Cache load0.00170.2020310.0001
Sytem overhead
Fetch class attribute can translate value0.00070.084730.0002
Fetch class attribute name0.00140.174550.0003
XML
Image XML parsing0.00080.095130.0003
class_abstraction
Instantiating content class attribute0.00000.001250.0000
General
dbfile0.00080.0921160.0000
String conversion0.00000.001040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 17
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs