Difference between revisions of "Changing Announcements Order By"

From SDU
Jump to: navigation, search
(How to change the order by on the result list for announcements)
 
Line 1: Line 1:
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.
+
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 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
 
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
+
1. Edit the %nx_root%/site/mods/majic/cm.maj
  
search for: "OBJECT cnote {"
+
2. 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.
+
3. Scroll down to: "SORT_BY "posted_date";"
  
restart services and the default sort order will be descending for the list_cnote.htmpl
+
4. Change to: "SORT_BY "posted_date DESC";"
 +
 
 +
Note: We only added 'DESC' after the posted_date field.
 +
 
 +
5. Restart services and the default sort order will be descending for the list_cnote.htmpl.

Revision as of 14:38, 8 August 2008

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 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

1. Edit the %nx_root%/site/mods/majic/cm.maj

2. Search for: "OBJECT cnote {"

3. Scroll down to: "SORT_BY "posted_date";"

4. Change to: "SORT_BY "posted_date DESC";"

Note: We only added 'DESC' after the posted_date field.

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