Friday 28 May 2010 2:01:03 am
You should do as André said and enable debug information and use |attribute(show, 1), its a great help to see your node identifiers and the data_map identifiers and data. {def $random_articles=fetch('content', 'list', hash('parent_node_id', 72, 'offset', rand(0,4), 'limit', 1))} Using 'list' will get the child nodes with object data and as André said you need to access the data_map. Inside your foreach loop you can do this:
{foreach $random_articles as $article}
<h3>{$article.name|wash}</h3>
{$article|attribute(show, 1)}
{$article.data_map|attribute(show, 1)} {/foreach} Then you will first view the node attributes and data and then the object data_map attributes and data. Make sure you have the correct identifier name (intro) as well from the class file. With this "debug" code you will be able to see the identifier name and the content data that is stored into it.
|