Daniel Lopes
|
Friday 24 April 2009 10:00:44 am
I wrote the code below:
{def $my_list=fetch('content','list',
hash('parent_node_id',95,sort_by',array('modified',false()),
'attribute_filter',array(array('news/featured','=',1)),
'class_filter_type', 'include', class_filter_array, array('news')))}
{foreach $my_list as $node}
{attribute_view_gui attribute=$node.data_map.categoria}
<a href="{$node.url|wash}">{attribute_view_gui attribute=$node.object.data_map.title}</a>
<br />
{$node.object.modified|l10n(shortdate)}
<br />
{/foreach}
But the list does not update when I insert a new item and I refresh the page. What can I do? Regards,
|