Difference between revisions of "Changing Announcements Order By"
From SDU
| Line 4: | Line 4: | ||
== Procedures == | == Procedures == | ||
| − | 1 | + | === Step 1: Copy File === |
| + | You can easily correct this by copying %nx_root%/bopcfg/majic/cm.maj to %nx_root%/site/mods/majic | ||
| − | 2 | + | === Step 2: Open File For Editing === |
| − | + | Edit the %nx_root%/site/mods/majic/cm.maj | |
| − | + | ||
| + | === Step 3: Search File === | ||
| + | Search for: "OBJECT cnote {" | ||
<source lang="text">OBJECT cnote {</source> | <source lang="text">OBJECT cnote {</source> | ||
| − | |||
| − | 5 | + | === Step 4: Scroll to Field === |
| + | Scroll down to: "SORT_BY "posted_date";" | ||
| + | |||
| + | === Step 5: Make Edit === | ||
| + | Change to: "SORT_BY "posted_date DESC";" | ||
| − | 6 | + | === Step 6: Reset System === |
| + | Restart services and the default sort order will be descending for the list_cnote.htmpl. | ||
== Notes == | == Notes == | ||
We only added 'DESC' after the posted_date field on step 5. | We only added 'DESC' after the posted_date field on step 5. | ||
Revision as of 14:52, 8 August 2008
Contents
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
Step 1: Copy File
You can easily correct this by copying %nx_root%/bopcfg/majic/cm.maj to %nx_root%/site/mods/majic
Step 2: Open File For Editing
Edit the %nx_root%/site/mods/majic/cm.maj
Step 3: Search File
Search for: "OBJECT cnote {" <source lang="text">OBJECT cnote {</source>
Step 4: Scroll to Field
Scroll down to: "SORT_BY "posted_date";"
Step 5: Make Edit
Change to: "SORT_BY "posted_date DESC";"
Step 6: Reset System
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.