Displaying folder description

Author Message

Roxanna Samii

Tuesday 02 March 2004 9:14:17 am

Here is my code. I would like to display the folder description of a child folder to the Links folder. Is it possible?
<h1>Useful links</h1>

{let children=fetch( content, list, hash( parent_node_id, $node.node_id,
sort_by, $node.sort_array,
limit, 7,
class_filter_type, include,
class_filter_array, array(
'folder','link') ) )}

{* LOOP: For each child of the node... *}

{section name=Child loop=$children}
{* Display the content of the child using a line-view template. *}

{node_view_gui view=line content_node=$Child:item}
<hr>
{* End of loop. *}
{/section}
{* End of namespace. *}
{/let}

Alex Jones

Tuesday 02 March 2004 9:25:36 am

Yes, it is possible try using:

{attribute_view_gui attribute=$:item.data_map.description}

Also, a really useful tool when trying to figure out how to display parts of an item is <i>|attribute()</i>. For example, try adding the following code to a template to see information about the currently viewed node:

{$node|attribute()}

If you want more information than a single level of information you can change it to <i>attribute(2)</i> which would show a couple of levels, or <i>attribute(show)</i> which will show everything.

This can seem like information overload until you realize that it will allow you to figure out sometimes-complex paths to information.

Hope this helps,

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

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:29:58
Script start
Timing: Jan 18 2025 22:29:58
Module start 'layout'
Timing: Jan 18 2025 22:29:58
Module start 'content'
Timing: Jan 18 2025 22:29:59
Module end 'content'
Timing: Jan 18 2025 22:29:59
Script end

Main resources:

Total runtime0.6222 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0084 587.9063152.6250
Module start 'layout' 0.00840.0034 740.531339.4453
Module start 'content' 0.01180.6092 779.9766527.3438
Module end 'content' 0.62100.0012 1,307.32038.1641
Script end 0.6222  1,315.4844 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.5319160.0002
Check MTime0.00130.2117160.0001
Mysql Total
Database connection0.00150.239010.0015
Mysqli_queries0.573792.2058540.0106
Looping result0.00040.0696520.0000
Template Total0.587694.420.2938
Template load0.00210.344620.0011
Template processing0.585494.090520.2927
Template load and register function0.00010.018410.0001
states
state_id_array0.00150.236710.0015
state_identifier_array0.00080.128720.0004
Override
Cache load0.00180.2900300.0001
Sytem overhead
Fetch class attribute can translate value0.00050.087620.0003
Fetch class attribute name0.00080.132530.0003
XML
Image XML parsing0.00060.089720.0003
class_abstraction
Instantiating content class attribute0.00000.001130.0000
General
dbfile0.00080.1210160.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 18
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs