OS Builder/Add additional Activities

From OLPC
Jump to navigation Jump to search

Look into the sugar_activity_group and sugar_activities_extra modules.

sugar_activity_group

If your activities are published online and can being fetched from public URLs, the best option is to use sugar_activity_group. This works both for the builder and for later updates.

Define a 'base URL' -- for example, http://wiki.laptop.org/Activities/YourDeployment . Add the module to the modules list and a new section:

 [sugar_activity_group]
 url=http://wiki.laptop.org/go/Activities/YourDeployment

The system will actually request a url adding the OS version number, so it will try, in order

 http://wiki.laptop.org/go/Activities/YourDeployment/10.1.3
 http://wiki.laptop.org/go/Activities/YourDeployment/10.1
 http://wiki.laptop.org/go/Activities/YourDeployment/10
 http://wiki.laptop.org/go/Activities/YourDeployment

For best control over activity versioning, create a page for this specific version http://wiki.laptop.org/go/Activities/YourDeployment/10.1.3 . The page uses theactivity microformat -- the easiest way is to start copying the contents of http://wiki.laptop.org/go/Activities/G1G1/10.1.3 or http://wiki.laptop.org/go/Activities/G1G1Lite/10.1.3