Difference between revisions of "Changing Announcements Order By"
From SDU
| Line 17: | Line 17: | ||
== Notes == | == Notes == | ||
| − | + | We only added 'DESC' after the posted_date field on step 5. | |
Revision as of 14:45, 8 August 2008
Overview
In 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 current announcements, not ones from a year ago.
Procedures
1. You can easily correct this by copying %nx_root%/bopcfg/majic/cm.maj to %nx_root%/site/mods/majic
2. Edit the %nx_root%/site/mods/majic/cm.maj
3. Search for: "OBJECT cnote {"
4. Scroll down to: "SORT_BY "posted_date";"
5. Change to: "SORT_BY "posted_date DESC";"
6. Restart services and the default sort order will be descending for the list_cnote.htmpl.
Notes
We only added 'DESC' after the posted_date field on step 5.