Forums / Setup & design / Ezurl .. strange error !

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 :-)