Forums / Setup & design / Retrieve intro from article object
James Ward
Sunday 27 July 2003 3:06:51 pm
I am trying to list all article titles and their intros within a given folder but I can not figure out how to access their intros. This should be simple but I'm stumped. Here is the code I am attempting to use: {section show=$with_children} {section name=Child loop=fetch(content, list, hash( parent_node_id, $node.node_id, limit, $page_limit, offset, $view_parameters.offset, sort_by, $node.sort_array, class_filter_type, exclude, class_filter_array, array( 1, 10 ) ) )} <p class="article_title">{$Child:item.name|wash}</p> <p class="article_intro">{$Child:item.intro}</p> <a class="read_more" href={$Child:item.url_alias|ezurl}>Read More...</a> {/section}{/section}
Obviously $Child:item.intro does not work. Can I use my $Child object to get at the intro or am I going about this all wrong? Thanks in advance.
working at www.wardnet.com blogging at www.jamesward.ca
Bjørn Kaarstein
Monday 28 July 2003 12:57:43 am
Try {$Child:item.data_map.intro.content.output.output_text}
Regards Bjørn