Wednesday 11 August 2010 3:09:36 am
Hello all i am really struggling with fetching and printing content from ezpublish. i can grab content objects with code such as
{def $blogupdates = fetch('content','list',
hash(
'parent_node_id',269,
'limit',5))}
{foreach $blogupdates as $update}
<a href="{$update.url}">{$update.name|wash}</a> {/foreach} which works however i want to have granular control over all the attributes used in the print. So in one content object i have some attributes called image,title,link and content. when i do the following
{let rotators = fetch('content','list',
hash(
'parent_node_id',324,
'class_filter_type','include',
'class_filter_array',array('frontpage_rotator'),
'limit',4))}
{debug-log var=$rotators msg='var dumping $rotators'}
{foreach $rotators as $rotator}
<a href="{$rotator.url}">{$rotator.content|wash}</a> {/foreach} it does not display the content, any idea of how i control granular printing of content object attributes. Thanks Nicholas
|