Forums / Developer / {$content_object.published|l10n( datetime )}
Mike Borozdin
Thursday 08 January 2004 3:22:59 am
How do I sort by this attribute?
Björn X
Thursday 08 January 2004 5:35:06 am
{fetch('content','list_count',hash(parent_node_id,$node.node_id, sort_by,array(published,true()), class_filter_type,exclude, class_filter_array,array(1,24)))}
sort_by,array(published,true()),
the boolean defines if it is asc or desc
Saturday 10 January 2004 9:12:15 am
Thank you, Björn! I don't have to have an extra datetime attribute for sorting articles!!!!
Marco Zinn
Saturday 10 January 2004 9:58:27 am
No, you can use the "published" field. Side-question: Does this work with "modified", too?
Marco
Marco http://www.hyperroad-design.com