Problem when trying to show user the path of the content - please help!

Author Message

David Barker

Friday 01 August 2003 3:36:25 pm

Hey,
I just copied the code for the path shown to the user from the 'News' page in the demo. I mean the part that will say:

SPORT > *the page you're looking at*

and you can click on SPORT and be taken back to the sports page.

Well, it works OK on my page and shows the right path but the URLs which are associated with each 'folder' do not lead to any place. I will try to explain it better...

I can click on 'Root Folder' but the link goes to:
index.php/site/content/view/full/
This doesn't have any number on the end so it will just take me to an error page because there is no content! It does this for every URL - every URL takes me to index.php/site/content/view/full/

When I look at the exact same code on the News page, it works fine so why not on my pages?

Thanks!

Dave

P.S. The code I'm using is...

{section name=Path loop=$module_result.path offset=0}
{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}

Adri Rots

Monday 04 August 2003 10:49:21 am

Hi Dave,

I use this code:

{section name=Path loop=$module_result.path offset=1} {section show=$Path:item.url} {$Path:item.text|wash} {section-else} {$Path:item.text|wash} {/section} {delimiter}/{/delimiter} {/section}

Regards Adri

Brian Lack

Tuesday 23 September 2003 5:30:18 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.