Share » Forums » Developer » Sorting by attribute (date / timestamp)

Sorting by attribute (date / timestamp)

Sorting by attribute (date / timestamp)

Friday 08 May 2009 1:33:25 pm - 2 replies

Modified on Friday 08 May 2009 2:04:07 pm by Jani Tarvainen

Author Message

Ivo Lukac

Friday 08 May 2009 1:53:04 pm

Try it like this:

{def
        $nodes=fetch( 'content', 'list', hash(
                'parent_node_id', 123,
                'sort_by', array("attribute", false(),"article/publish_date"),
                'depth',1,
                'class_filter_type', 'include',
                'class_filter_array', array( 'article' )
        ))
}

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Jani Tarvainen

Friday 08 May 2009 2:03:20 pm

Works like a charm. Thanks, Ivo!

If only I could read this from the docs... Well at least we'll have this example as documentation :)

--
http://ezpublish.fi/

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu