| Table of Contents |
|---|
1. Requirements
- Checkout NewsFeeds code to your Sakai source directory:
- svn co https://source.sakaiproject.org/contrib//ufp/newsfeeds/trunk/ newsfeeds
- Additionally, for Sakai 2.5+:
- sakai-wicket: trunk
- Additionally, for Sakai 2.4.x:
- sakai-wicket: sakai_2-4-x
- entity-broker: 1.2.0
- Some jars must be manually added to local maven repository:
- Execute from the checked out newsfeeds source folder:
- mkdir -p ~/.maven/repository/org.wicketstuff/jars/
- cp lib/wicketstuff-dojo-1.3.0-SNAPSHOT.jar ~/.maven/repository/org.wicketstuff/jars/
- mkdir -p ~/.maven/repository/commons-httpclient/jars
- cp lib/commons-httpclient-contrib-3.0-beta1.jar ~/.maven/repository/commons-httpclient/jars/
- Execute from the checked out newsfeeds source folder:
2. Installation (offline)
- Change your current directory to the recently downloaded {newsfeeds}/ folder
cd newsfeeds - Edit pom.xml file and change the version tag to reflect sakai version
- Run Maven to compile NewsFeeds (replace {tomcat_folder} with the path to your tomcat folder):
- For Sakai 2.4.x, use Maven 1:
- maven -Dmaven.tomcat.home={tomcat_folder} sakai
- For Sakai >= 2.5 or trunk, use Maven 2:
- Make sure to delete the previous API jar named {tomcat_folder}/shared/lib/sakai-feeds-api-*.jar
- mvn -Dmaven.tomcat.home={tomcat_folder} clean install sakai:deploy
- For Sakai 2.4.x, use Maven 1:
3. Configuration (offline)
Please refer to the Configuration Options page for more information.
4. Sakai setup (online)
4.1. Setup tool permissions (only for non-My Workspace sites)
- Startup tomcat if not started yet
- Setup tool permissions for the maintain and Instructor role on the !site.template and !site.template.course templates:
- Click Realm
- Click !site.template
- Click Role Id - maintain
- Check:
- feeds.subscribe box to grant an user permission to subscribe news feeds
- Click the Done Button
- Repeat for the Instructor role on the !site.template.course realm
- Repeat for the realms of existing sites or use a script for the effect
4.2. Add the NewsFeeds tool to a site
Use the 'Worksite setup' or the 'Site Info' tool to add NewsFeeds to a Sakai site:
- click 'Add tools' link
- select 'News Feeds' tool
- click 'Continue' to save changes