Difference between revisions of "Changing Announcements Order By"

From SDU
Jump to: navigation, search
Line 1: Line 1:
 +
== 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.
 
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.
  
You can easily correct this by copying %nx_root%/bopcfg/majic/cm.maj to %nx_root%/site/mods/majic
+
== Procedures ==
  
1. Edit the %nx_root%/site/mods/majic/cm.maj
+
1. You can easily correct this by copying %nx_root%/bopcfg/majic/cm.maj to %nx_root%/site/mods/majic
  
2. Search for: "OBJECT cnote {"
+
2. Edit the %nx_root%/site/mods/majic/cm.maj
  
3. Scroll down to: "SORT_BY "posted_date";"
+
3. Search for: "OBJECT cnote {"
  
4. Change to: "SORT_BY "posted_date DESC";"
+
4. Scroll down to: "SORT_BY "posted_date";"
  
Note: We only added 'DESC' after the posted_date field.
+
5. Change to: "SORT_BY "posted_date DESC";"
  
5. Restart services and the default sort order will be descending for the list_cnote.htmpl.
+
6. Restart services and the default sort order will be descending for the list_cnote.htmpl.
 +
 
 +
== Notes ==
 +
Note: 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

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