Navigating Articles

Author Message

Neil Kanth

Wednesday 16 February 2005 1:37:30 pm

I want to have each category/(node or section) to have their articles listed in the Left Column as a link. How can I accomplish this?
The closest I have gotten is with this piece of code:

{*This code list the items in the current folder without links to the items.*}

{* set children variable *}
{let children=fetch('content',list,hash(parent_node_id,$node.node_id))}

<h2>{$node.name}</h2>

{* loop children and print name *}
{section name=Child loop=$children}
<ul>
<li>{$Child:item.name}</li>
</ul>
{/section}

{/let}

thanks
-neil

Nicolas Heiringhoff

Thursday 17 February 2005 5:34:47 am

Hi Neil,

i think this should work:

<a href={$Child:item.url_alias |ezurl} >{$Child:item.name}</a>

nico

http://www.heiringhoff.de

Ɓukasz Serwatka

Thursday 17 February 2005 5:43:05 am

<a href={concat("/", $Child:item.url_alias )|ezurl} >{$Child:item.name}</a>

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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 22:27:31
Script start
Timing: Jan 18 2025 22:27:31
Module start 'layout'
Timing: Jan 18 2025 22:27:31
Module start 'content'
Timing: Jan 18 2025 22:27:33
Module end 'content'
Timing: Jan 18 2025 22:27:33
Script end

Main resources:

Total runtime1.0734 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 589.3359152.6250
Module start 'layout' 0.00650.0037 741.960939.4297
Module start 'content' 0.01021.0616 781.3906576.9688
Module end 'content' 1.07180.0016 1,358.359412.1875
Script end 1.0734  1,370.5469 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.3261160.0002
Check MTime0.00130.1200160.0001
Mysql Total
Database connection0.00110.100710.0011
Mysqli_queries1.022095.2154590.0173
Looping result0.00070.0655570.0000
Template Total1.019294.920.5096
Template load0.00200.186220.0010
Template processing1.017294.760520.5086
Template load and register function0.00020.014210.0002
states
state_id_array0.00250.230210.0025
state_identifier_array0.00230.215220.0012
Override
Cache load0.00160.1518170.0001
Sytem overhead
Fetch class attribute can translate value0.00070.060730.0002
Fetch class attribute name0.00080.076250.0002
XML
Image XML parsing0.00130.120030.0004
class_abstraction
Instantiating content class attribute0.00000.000950.0000
General
dbfile0.00120.1098240.0000
String conversion0.00000.000840.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs