Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Data Model Questions

Use of $default_sort


Reply

3 Posts   3576 Views

Avatar
Juanitou

8 December 2009 at 12:36am Community Member, 323 Posts

Hi!

I don’t understand why $default_sort is working in a DataObject I created but not in a ArticlePage (redefinition of Page). In the forum there are other people complaining about that. I know I can use a custom function to sort these pages, But I’m wondering if this is a bug or not…

Regards,
Juan

Avatar
Juanitou

17 January 2010 at 8:16am (Last edited: 17 January 2010 11:53am), Community Member, 323 Posts

I think I’ve found it: when you duplicate a page (because of the interest of repeating some content or structure), the new page has the same Sort value as the original. Changing it in the database or moving around the page in the CMS are solutions.

That’s a bug, isn’t it?

Avatar
kuenkuen82

20 April 2010 at 2:22pm Community Member, 41 Posts

could you share what is your custom sort function? I'm having a problem with default sorting the pages

static $default_sort = "Date DESC";