{$content_object.published|l10n( datetime )}

Author Message

Mike Borozdin

Thursday 08 January 2004 3:22:59 am

How do I sort by this attribute?

Björn Dieding@xrow.de

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

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Mike Borozdin

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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.