Академический Документы
Профессиональный Документы
Культура Документы
Share is a Platform
Base content
services
Dashboards, client
framework
Scriptable,
templatable alternative
Share Technologies
Client-side, web-tier, repository-tier Decide mix between client-side vs. web-tier JavaScript code
Most extensions will use a combination of both But do not duplicate code
Custom Dashlets Custom Document Actions Custom Themes Additional Language Packs Custom Pages (More advanced)
Custom Dashlets
Just a web script!
BUT
Rapid development
Lightweight
Dashlet Capabilities
Call repository services, e.g.
Resizing Dialogues
Types of Dashlet
User Dashlets (user-dashlet family) Available on any user dashboard Usually independent of site content, or crosssite view
Site Dashlets (site-dashlet family) Available on any site dashboard Typically concerned with content within a site
Combined Dashlets (dashlet family) Available on both user and site dashboards
Anatomy of a Dashlet
Client-side (optional)
Client-side
Web-tier
Web script XML descriptor (name, description, family, etc) HTML Freemarker template Messages bundle(s) for I18N Dashlet controller script (optional) Dashlet XML configuration (optional)
Repository-tier
extension/site-webscripts
Repository-tier scripts in
config/alfresco/extension/templat es/webscripts
Easy deployment and packaging using Ant Not suitable if you are using Maven
e.g. components/dashlets
Developing Dashlets
Develop locally
Development tips
Development tools
Your favourite text editor / IDE Firefox plus Firebug OR Google Chrome Ant or Maven to deploy changes to your test system and package for distribution Source code control, e.g. SVN, Git YUI Compressor
Testing Dashlets
Copy web-tier scripts to
<TOMCAT_HOME>/shared/classes/alfresco/webextension/site-webscripts <TOMCAT_HOME>/shared/classes/alfresco/extensio n/templates/webscripts <TOMCAT_HOME>/webapps/ROOT/share-extension
http://localhost:8080/share/index
May
Can use Ant or Maven for easy packaging Deploy into webapps/share/WEB-INF/lib or
shared/lib
Extensions in Action
Anatomy of a Theme
Client-side
Theme Theme
Web-tier
Web-tier
Red Theme
More information
http://wiki.alfresco.com/wiki/Web_Scripts http://wiki.alfresco.com/wiki/Alfresco_Share http://blogs.alfresco.com/wp/kevinr/ http://blogs.alfresco.com/wp/wabson/
Q&A