How do I include multiple articles in layout template?

How do I include multiple articles in layout template?

Wednesday 24 March 2004 4:03:58 pm - 1 reply

Author Message

Lazaro Ferreira

Wednesday 24 March 2004 4:45:03 pm

Hi,

You can only have one article via module_result.content
The other four, you will need to fetch it explicitly using fetch() function, something like :

{* Fetch node number 42. i.e: article2 *}
{let node=fetch( 'content', 'node', hash( 'node_id', 42 ) )}

{* Display the full article2. *}
{node_view_gui view=full content_node=$node
{$node.name}

{/let}

Replace in the code above the node_id for your actual node_id, open the article in the admin page it will show its node_id
You can repeat this block of code for every other article you want to include in your layout page

After that, you may need to override the default "full article" template and customize it to your needs

Lazaro
http://www.mzbusiness.com

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.