Changing Announcements Order By

From SDU
Revision as of 14:35, 8 August 2008 by Allen.wilson@gmail.com (Talk | contribs) (How to change the order by on the result list for announcements)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

n R11 you can easily add a node to your scoreboard for 'Announcements'. But quickly I noticed that unlike the 'View->Announcements' form, it sorts Ascending by default and most would want to see the most current announcements, not ones from a year ago.

You can easily correct this by copying %nx_root%/bopcfg/majic/cm.maj to %nx_root%/site/mods/majic

edit the %nx_root%/site/mods/majic/cm.maj

search for: "OBJECT cnote {" scroll down to: "SORT_BY "posted_date";" change to: "SORT_BY "posted_date DESC";"

Note that we only added 'DESC' after the posted_date field.

restart services and the default sort order will be descending for the list_cnote.htmpl