Template syntax for forum posts order

Author Message

Eirik Alfstad Johansen

Monday 06 September 2004 6:16:29 am

Hi,

What's the template syntax for the forums posts order in the ez forum (meaning that the forum topic with the most recent forum reply is displayed first)?

Thanks in advance !

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Paul Borgermans

Monday 06 September 2004 6:57:24 am

Hi Eirik

There is nothing special, just a new sort method and attribute filter called 'modified_subnode' to be used in fetch(content,tree|list, hash(...,sort_by, ...))

hth

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Ole Morten Halvorsen

Monday 06 September 2004 7:09:26 am

Hi Eirik,

I think this is what you are after:

{let child_list=fetch( 'content', 'list', hash( parent_node_id, $node.node_id,
                        limit, 20,
                        offset, $view_parameters.offset,
                        sort_by, array( array( modified_subnode, false() ) ) ) )}

Ole M.

Senior Software Engineer - Vision with Technology

http://www.visionwt.com
http://www.omh.cc
http://www.twitter.com/omh

eZ Certified Developer
http://ez.no/certification/verify/358441
http://ez.no/certification/verify/272578

Eirik Alfstad Johansen

Monday 06 September 2004 9:59:55 am

Thanks for enlightening me, guys!

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

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