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.

eZ debug

Timing: Jan 18 2025 16:20:46
Script start
Timing: Jan 18 2025 16:20:46
Module start 'layout'
Timing: Jan 18 2025 16:20:46
Module start 'content'
Timing: Jan 18 2025 16:20:47
Module end 'content'
Timing: Jan 18 2025 16:20:47
Script end

Main resources:

Total runtime0.7617 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.0041 588.0469152.6406
Module start 'layout' 0.00410.0043 740.687539.4766
Module start 'content' 0.00840.7522 780.1641547.6250
Module end 'content' 0.76060.0011 1,327.789112.4375
Script end 0.7617  1,340.2266 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4165160.0002
Check MTime0.00150.1935160.0001
Mysql Total
Database connection0.00070.087710.0007
Mysqli_queries0.710993.3256620.0115
Looping result0.00060.0772600.0000
Template Total0.731596.020.3657
Template load0.00200.266820.0010
Template processing0.729495.760020.3647
Template load and register function0.00010.013010.0001
states
state_id_array0.00070.098310.0007
state_identifier_array0.00100.133120.0005
Override
Cache load0.00170.2239310.0001
Sytem overhead
Fetch class attribute can translate value0.00070.090830.0002
Fetch class attribute name0.00130.169950.0003
XML
Image XML parsing0.00080.103230.0003
class_abstraction
Instantiating content class attribute0.00000.001560.0000
General
dbfile0.00080.1031160.0000
String conversion0.00000.001340.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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.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
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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.0001 secs