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.

eZ debug

Timing: Jan 31 2025 01:17:30
Script start
Timing: Jan 31 2025 01:17:30
Module start 'layout'
Timing: Jan 31 2025 01:17:30
Module start 'content'
Timing: Jan 31 2025 01:17:30
Module end 'content'
Timing: Jan 31 2025 01:17:30
Script end

Main resources:

Total runtime0.0221 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 588.6094151.2734
Module start 'layout' 0.00510.0037 739.8828220.7656
Module start 'content' 0.00880.0119 960.6484997.7578
Module end 'content' 0.02070.0013 1,958.406329.9922
Script end 0.0220  1,988.3984 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002913.1448140.0002
Check MTime0.00125.6210140.0001
Mysql Total
Database connection0.00083.791610.0008
Mysqli_queries0.00198.438530.0006
Looping result0.00000.054110.0000
Template Total0.00094.110.0009
Template load0.00073.202410.0007
Template processing0.00020.915710.0002
Override
Cache load0.00052.281310.0005
General
dbfile0.00125.627580.0002
String conversion0.00000.042240.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