List with links

These documentation pages are no longer maintained. Please visit the new documentation site.

In the second example we will output links to the child objects, not just their names. We use the function 'node_view_gui' to print the child objects, and select the 'line' view mode.

{* set children variable *}

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

 

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

 

{* loop children and show line view *}

{section name=Child loop=$children}

{node_view_gui view=line content_node=$Child:item}<br>

{/section}

 

{/let}

This will output something like this:
TODO: add screenshot

Comments

log in or create a user account to comment.

Contents

Customization

Access control
Exponential API Documentation
Content structure
Custom design
    User specified parameters
    Template variables set by Exponential
    Introduction
    Variables, arrays and objects
    Node
    Database connectivity
    Sections
    File placement
    Override templates
    node_view_gui
    Pagination
    Caching
    Stylesheets
    Pagelayout
    Printable pages
    Examples
       Template language
       Creating a navigation path
       Common template issues
          Complex list
          Complex list with colours
          List with links
Components
Tips & Tricks
Troubleshooting


Created

04/07/2003
11:07:13 am
by Bård Farstad

Last updated

04/07/2003
11:07:13 am
by Bård Farstad

Authors

Bård Farstad



This page is part of the Exponential documentation. The documentation is available under the GNU Free Documentation License. All contributions will be released under the terms of this license.