Clickable path lacks node id in it's links.

Author Message

Valentin Svelland

Monday 21 July 2003 5:37:33 am

Any of you guys had trouble with clickable paths on your ez webpages? Example: /Front page/News/Sports/

I have this code snippet in my pagelayout_mydesign.tpl-file to give me a clickable path at the top of the pages. It displays current path just fine, but when clicked on it returns "Unavailable The object is not available.".

Seems like the node number isn't included in the call generated by clicks on the path

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

Bjørn Kaarstein

Monday 21 July 2003 6:38:15 am

Try to write {$Path:item.url} inside your sections, but outside your concat, to see if you get a correct value. If not, you've got your problem there...

Regards Bjørn

Valentin Svelland

Monday 21 July 2003 7:06:12 am

Yes, I get the right value outside {concat but it seems to be the |ezurl which strip the node-number from my urls.

{$Path:item.url} generates /content/view/full/117

..but inside the concat this is what I get:
http://mywebsite.com/ezpublish/index.php/mydesign/content/view/full/

Not quite sure how to fix this though, but I noticed this thread. Maybe the same problem:http://www.ez.no/developer/ez_publish_3/forum/setup_design/ezurl_strange_error_

Brian Lack

Tuesday 23 September 2003 5:28:29 pm

Try 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.