The Alfresco Website Framework is (currently) an Alfresco Forge Project whose goal is to produce a basic website framework/skeleton that provides web developers a starting point for building new websites using Alfresco WCM. The WSF is Copyright of Alfresco and licensed under GPL.
Important Note: The WSF should currently be considered and viewed as an experimental playground as we explore ways of developing a series of best practices and design patterns for Alfresco WCM site development. Please keep this in mind as you begin to explore the WSF. Your feedback and suggestions are critical to the project's success. The eventual goal is to turn these into a robust and scalable platform for all Alfresco-based WCM activities.
Dynamic Navigation Channels
Three-level site navigation tree: Modeled and managed as web content.
Horizontal, Vertical Navigation: DHTML drop down menus and breadcrumbs.
Latest Content: Content list based on timestamp
Channel Content List: List of content under centain channels/
Multimedia File List: Embedded Flash Player lists videos and audio files.
Alfresco Documents: Traditional alfresco document list (via Open Search)
Featured Content List: Highlight a specific article to be featured on the front page.
Single Content View
Picture of The Day: Supports slide show of multiple pictures.
Message of The Day: Single text block.
Implements Google Sitemap
Treeview of all site assets and their properties.
Display metrics related to site dynamic content.
Display dynamic content (user profile) on Yahoo map.
Alfresco document feed via Open Search REST API.
Alfresco WCM web content feed (Articles) in RSS format.
Site Preview toolbar
Many site parameters are configurable e.g. style, header, footer, navigation, tool bar, locale etc.
Content Search (2.1)
Both Articles and News-Flashes are searchable via web scripts. Search includes both simple keyword search and advanced search.
PDF Generation (2.1)
Generate PDF files for both Articles and News-Flashes.
The code from the SVN server includes a pre-generated demo-website.war file under the 'extra' folder. You can freely use this and skip the following three steps. If you wish to build from scratch, please read on.
Setup three environment variables
ALFRESCO_REPOSITORY -- points to the root folder of your local alfresco svn repository.
TOMCAT_HOME -- points to your alfresco tomcat home folder.
VIRTUAL_TOMCAT_HOME -- points to your virtual alfresco tomcat home folder.
Run ant script to build your alfresco instance.
Run ant script under alfresco/core.
If you point ALFRESCO_REPOSITORY to Enterprise HEAD, run ant -f build-head.xml build-demo-website
For others, run ant build-demo-website
Uploading Site and Forms:
Create and configure new web forms with XSD files under folder contentmodels and associate them with the corresponding XSLs under folder templates. When setting up web forms, take all default values except for the Output path pattern. For 2.1, all web forms must be associated with a default workflow.
Create a new web project and associate it with all eight web forms we just created.
Bulk import the 'demo-website.war' file.
Create a site-configuration content item using web form, site-configuration, and name it as SC and put it under '/content/site-configuration'. You can just create a dummy one with the name SC and then update it with the SC.xml under extra folder.
Create a navigation content item using web form, navigation, and name it as NavigationTree and put it under '/content/navigation'. Again, you can just create a dummy one and update it with NavigationTree.xml under extra folder. If you want to use different name, you then need to adjust the navigation setting in SC.xml.
Create web content, MOTD, POTD, News flash, Article etc. and put them under corresponding folders under '/content'. To make news-flashes and articles available for channel pages, you need to edit your navigation content item and link them as content links (Check Feature option if you want them to be displayed as feature items). For MOTDs and POTDs, you can do the channel association when you edit them.
(2.1) Copy three jars (cglib-nodep-2.2_beta1.jar,hibernate-3.2.1.jar,log4j-1.2.8.jar) from tomcat\webapps\alfresco\WEB-INF\lib to virtual-tomcat\common\lib
(2.1) Upload web scripts (under webscripts\source ) to Data Dictionary\Web Scripts Extensions
For map mashup, if it asks for a new site key, go to Google Map API site and sign up key for your site url. For example
The Community has released an AMP plugin called Web Project Tools that provides the WCM administrator with some additional nifty features. Among them is the automatic import of Web Projects.
A Web Project Library has been established into which WCM sample web projects will be placed. Among the first of these is WSF 1.5! You may wish to visit the Web Project Library page to learn more about this.
As we look towards evolving WSF, we hope to introduce a full-featured web development framework, AJAX support, widgets, skinnable UI templates and more.
Here are some ideas:
Web Development Framework: It would be beneficial to integrate WSF with one (or more) web frameworks such as Tapestry, Cocoon, Struts, etc. One key design goal, however, is that while support for an MVC architecture is desirable, we don't want to 'slow down' the development process by requiring that the controllers be compiled. As such we're looking for a Java-compatible MVC web development framework that perhaps leverages dynamic languages. We're leaning towards using Groovy and Grails.
Dynamic Website: Dynamic content selection using [Web Scripts] as the back-end components and a front-end tag library.
Skinnable UI: We wish to establish CSS and UI conventions that facilitate the process of 'skinning' or branding the website.
AJAX Support: As we look to add more interactivity to WSF, it would be ideal to use AJAX and DHTML techniques and integrate them into the content model and upcoming WCM search features. Possible toolkits include GWT, MooTools, YUI, Prototype, Dojo, etc.
Content Syndication and Mashable APIs: No web framework in this day and age would be complete without support for syndication formats (RSS and ATOM) and APIs (using REST, XML, JSON). As such, a skeleton package of syndicators and APIs would be beneficial to developers.
User Generated Content: Support for comments, tagging, perhaps blogs, etc.
User Management: This is more of a nice-to-have, but it's possible to have Alfresco WCM offer the ability to create 'community sites' as such user management becomes critical. We could use something like OSUser as the foundation for this.