click here for details... Sakai Executive Director Position Search now open
Issue Details (XML | Word | Printable)

Key: SAK-7341
Type: Task Task
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Joshua Ryan
Votes: 1
Watchers: 3
Operations

If you were logged in you would be able to see more operations.
Sakai

add site ordering type flag

Created: 08-Dec-2006 14:32   Updated: 23-Oct-2008 10:47
Component/s: Global
Affects Version/s: trunk [DO NOT USE]
Fix Version/s: 2.4.0

Time Tracking:
Not Specified

Issue Links:
Relate
 

2.6.x Status: None
2.5.x Status: None
2.4.x Status: None


 Description  « Hide
In order for users to use the page order helper tool without messing up all their existing sites that currently use toolOrder.xml there needs to be a flag that can be set on a site if a site is being reordered that when set changes the ordering given to the portal to reflect the order set. Or something like that.

 All   Comments   Work Log   Change History   Subversion Commits   git Commits      Sort Order: Ascending order - Click to sort in descending order
Stephen Marquard added a comment - 12-Dec-2006 07:22
We would like to deploy the page order helper but use toolOrder.xml. Ideally we'd like something so that the Page Order is visible for anyone in Site Info, but when you go into it you can choose:

* Default order (use or reset order to the toolOrder.xml ordering)
* Custom order (as per the pageorderhelper arrangement)

Stephen Marquard added a comment - 13-Dec-2006 04:32
So it seems what is needed here is to change getOrderedPages() site/site-impl/impl/src/java/org/sakaiproject/site/impl/BaseSite.java to take account of a site setting.

Is this a new site property, or something in the site API? I'm willing to create a patch if there's an approved way to implement this, as we are keen to deploy pageorderhelper in a way that coexists with toolOrder.xml.

Glenn R. Golden added a comment - 15-Dec-2006 19:45
One can now set this in Site:

setCustomPageOrdered(true)

The order of pages that the portal uses will then be the site order, not the toolOrder.xml order.

The admin site editor now also shows and edits the flag.

There is conversion to the site table needed - auto ddl takes care of the conversion, the new site ddl has the new field, and the 2.3 -> 2.4 scripts are updated to include the conversion.

Joshua Ryan added a comment - 18-Dec-2006 17:06
That's perfect, thanks Glenn!

Megan May added a comment - 08-Feb-2007 08:43
Updating fix version from nightly2/trunk to 2.4.0.001 in prep for first QA tag (Prelim testing pre-code freeze)