[Building Sakai] toolOrder.xml, templates and the home tool
Raad Al-Rawi
Raad.Al-Rawi at admin.cam.ac.uk
Wed Nov 16 01:57:10 PST 2011
> -----Original Message-----
> From: sakai-dev-bounces at collab.sakaiproject.org [mailto:sakai-dev-
> bounces at collab.sakaiproject.org] On Behalf Of Coetzee, Nico
> Sent: 15 November 2011 13:34
> To: Coetzee, Nico
> Cc: Sakai Developers
> Subject: Re: [Building Sakai] toolOrder.xml, templates and the home tool
>
<snip>
> When a site get created we get the site pages in the correct order. But if a
> lecturer clicks on the site info-tool and add a tool the page order get messed
> up and the home tool is now somewhere in the list (see course screenshot
> attached):
Just a very quick thought - this could be connected to the custom page order setting.
What is it set to in your template? If it's "no" then it might explain the behaviour you're seeing.
> I have traced as far as i could through the site-mange -> SiteAction but I
> cannot find the fault.
>
> I have also noticed there is a part in SiteAction (line 668 about) that does a
> lookup of wsetup.home.toolids
>
> // First: get the tool ids from configuration files
> // initially by "wsetup.home.toolids" + site type, and if missing, use
> "wsetup.home.toolids"
> if (ServerConfigurationService.getStrings("wsetup.home.toolids." +
> siteType) != null) {
> rv = new
> ArrayList(Arrays.asList(ServerConfigurationService.getStrings("wsetup.home
> .toolids." + siteType)));
> } else if
> (ServerConfigurationService.getStrings("wsetup.home.toolids") != null) {
> rv = new
> ArrayList(Arrays.asList(ServerConfigurationService.getStrings("wsetup.home
> .toolids")));
> }
>
> // Second: if tool list is empty, get it from the template site settings
> if (rv.isEmpty())
>
>
> I found that if you do not have a wsetup.home.toolids.course in your
> sakai.properties, it gets a list from the default sakai.properties, is this
> correct?
Looking at the snippet you quoted, I'd say for a course site it looks for " wsetup.home.toolids.course" and if it fails to find that looks for "wsetup.home.toolids". I don't believe there is a default "sakai.properties".
Cheers
Raad
More information about the sakai-dev
mailing list