This article is a step-by-step guide to manually building a simple standalone web site with the SURF framework. This will familiarise you with some of the major components and building blocks used by SURF and provide a good foundation for understanding how Web Studio works under the covers.

As described by the Alfresco Wiki – Alfresco Surf is a lightweight, scriptable web framework built on top of Alfresco’s Web Script and Templating runtime.  It is packaged as a single WAR file meaning it can exist as a standalone application.  One of the nice things about the SURF framework is that you do not HAVE to use Alfresco, or any other data source to construct a web application, so for the purposes of this example, we will simply construct a basic standalone website without using Alfresco. We will take a static HTML web site template, componentise it and demonstrate loading different areas of the page using very basic Web Scripts.
[click to continue…]

{ 7 comments }

Recently I have been using Will’s libary for processing XML files in at request time using JSTL, and thought i would post some working examples which may be of use.

[click to continue…]

{ 0 comments }

Here is a very simple example of using alf:parseXMLDocuments with both XSL and Freemarker. This example will effectivley load all XML output files from the root dir of type ‘blog-article’ and complie them into an output rendition.

Download the example files here or [click to continue…]

{ 10 comments }

TinyMCE – Valid Tags

December 4, 2008

TinyMCE by deafult will strip specific tags unless specified not to. For example the Flash <object> tag. These tags can be added in C:\alfresco\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\web-client-config-wcm.xml so that they are not stripped upon save. For example:

[click to continue…]

{ 0 comments }

When creating an XML asset using a Web Form, it is sometimes required for an element of the output XML file, to be used within the output path. For example, if it was required that the save directory was input by the user. The examples below shows two output path strings that could be used to acheive this. In this example the “region” element is a user input within the web form, and the produced XML file is saved into this folder within the users sandbox.

[click to continue…]

{ 2 comments }