The OSP Portal - sakai.sitesetup.xml

Configuring the Worksite Setup Tool Registration File

Let's assume we want to add the following site types to the default setup:

  1. Program
  2. Goal
  3. Portfolio

The change to the source file here is very easy to make. Merely add the list of additional site types to the value attribute in the /registration/tool/configuration element.

sakai/site-manage/site-manage-tool/tool/src/webapp/tools/sakai.sitesetup.xml
<?xml version="1.0"?>

<registration>

	<tool
			id="sakai.sitesetup"
			title="Worksite Setup"
			description="Modify your sites and create new ones.">

		<!-- types are seperated by , -->
		<!-- Steps for adding new site type: -->
		<!-- 1. add the site type into the following siteTypes value -->
		<!-- 2. add the site type as category into related tool reg files-->
		<!-- 3. if the site title is editable, add the site type into titleEditableSiteType in sakai.properties file -->
		<!-- 4. if specific tool order for the site type is needed, specify it inside toolOrder.xml file -->

		<configuration name="siteTypes" value="course,project,program,goal,portfolio" />		

		<!-- default site type -->
		<configuration name="defaultSiteType" value="course" />
		<!-- types of sites that can either be public or private -->
		<configuration name="publicChangeableSiteTypes" value="project" />
		<!-- types of sites that are always public -->
		<configuration name="publicSiteTypes" value="course" />
		<!-- types of sites that are always private -->
		<configuration name="privateSiteTypes" value="" />

		<configuration name="site_mode" value="sitesetup" type="final" />

		<category name="myworkspace" />
		
	</tool>

</registration>

Next: Edit the osp-portal components.xml files >>