Tuesday 08 February 2005 4:55:13 am
Hello I am managing to set up the "news" section of a site. Basically, this section should gather all object whose attribute "is_new" has been set to true, sorted by last publish date. The problem is that the function fetch( 'content', 'list',... doesn't support filtering on different content classes. So I don't know how to initially retrieve this "news" object list. Of course I could make a specific call to fetch( 'content', 'list',... for each content class. In this case I would be back in my template with several tables (one by class type actually). I could merge these tables together and then display the list but how can sort these content objects together by publish date? I did not see any sort operator that would do the job easily... Does someone have any idea on how to solve these problems? Thank you in advance Olivier Pierret PS: If I am not clear enough I can elaborate a bit ;)
|