Article display problem...

Author Message

Douglas Johnson

Thursday 24 July 2003 10:10:37 am

I've got a folder with 3 articles inside it. When I link to the folder I would like to display article #2 in the {$module_result.content}. Again.....click link to "folder" displays an article. Can anyone show me how to do this? Thanks in advance. Doug Johnson.

Kjerand Pedersen

Thursday 24 July 2003 11:40:04 am

Find the id of article#2, then, in the template for the containing folder, fetch only this node (assuming you've created an override template for the folder).

Let's say the article's node_id is 100, then you'd write something like this in the template (for the containing folder):

---

{let article_2=fetch('content','node',hash(node_id,100))}

{$article_2:item.data_map.title.content}
....and so on....

{/let}

Not sure if this is what you ment, but I hope it helps.

Douglas Johnson

Friday 25 July 2003 7:35:35 am

{let article_2=fetch('content','node',hash(node_id,100))}

{$article_2:item.data_map.title.content}

{/let}

This code does not work for me. Thanks anyway.

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