Thanks, Jim -- it was late when I wrote that.
Sean
Jim Gay wrote:
Just to prevent any confusion, its the 'default_order' plugin, not
extension
And take a look at
http://github.com/avonderluft/radiant-page_list_view-extension/tree/master for
another way to do it
I think ordering by title is great for a CMS. For a blog it makes less
sense, but Radiant was built first to be a CMS.
On Sep 26, 2008, at 12:01 AM, Sean Cribbs wrote:
That should be a simple extension to write. Radiant includes the
ancient but useful 'default_order' extension, so this should
hopefully do the trick (inside your extension's activate method):
Page.class_eval { order_by 'published_at DESC' }
If you simply want to order by creation date, use 'created_at DESC'
instead.
Sean
Simon Rönnqvist wrote:
Hi!
I'm really new to Radiant, so I might have missed something basic..
however I was unable to find the answer when looking around for a
while.
I find it a bit strange that Radiant shows article ordered by title
in the admin back-end by default. Is there at least an easy way to
change this behavior so that they'd be ordered by date there too
(and not only on the actual web page)?
cheers, Simon
_______________________________________________
Radiant mailing list
Post: Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant
_______________________________________________
Radiant mailing list
Post: Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant