The browser-based system called Alfresco allows access to the documents through Windows share as well as WebDav. Alfresco showcases a number of features like smart faces, automatic metadata extraction (from MS Word files), content versioning, and an advanced content search. Its Web content mgmt capabilities allow you to use the content created in Alfresco to be used in a website based on any language or technology-Net, Java, or PHP. The content authors can preview their Web pages in a sandbox and upon approval (facilitated through a workflow), can publish the content to the production site.

Start up Alfresco
Start the appliance as explained in the article 'Installation & Implementation.' Login as root. Change to the directory /var / alfresco and start Al¬fresco as:
cd /var/alfresco .jalfresco. sh start Fire up a Web browser (IE or Firefox) from one of the machines on your network and type in the URL- http://<ip-address>:8080/alfresco/. Substitute <ip¬address> with the IP address you assigned to the ap¬pliance. Click on 'Login (guest).' You will be redirected to the login page. Here, login as admin with the password as admin. Upon login as admin, click on the 'Administration Console' icon. It allows you to manage users, groups, document categories, etc. For an in-depth on document mgmt refer to the article 'Document MgmtSystem' athttp://pcquest.ciol.com/ con¬tent/linux/2007/107031013.asp
Web Content Management (WCM)

Using a simple example, we go through a quick overview of how WCM works in Alfresco. Let us as¬sume that your website hosts articles, each of which has a title, subtitle, byline, date, content (the body of the article). In WCM, each content item (like article in this case) needs to be defined through an XSD (XML Schema Definition) file. The XSD for the arti¬cles will look something as follows:
To create new spaces (directories), click on 'Company Home' (left). Click on Create>Create Space (right). Type in the name of the space (say Reports) and click on 'Create Space'
xmlns:xs=''http://wws.l j OIg 2001 X/'IlSchema"
xmll1s: pr="l! fresco .orq/a i f 1 esco /pr" targetNamesp<lce=" http:,! W v ",.alhp«().org/alfresco/pI" elementFormDefault 'qualifiE'u"",
<xs:element name= a tlete" >
<xs:sequence'"
<xs:element 11,1me=" title" lype="x,,:normalizedSt,inq "j> <xs:element name- subtitle' type xs:normallzedString"j> <xs:element name "byline type' xs:normJbzedString"!> <xs:element l1ame=' datrct" type'" xs:date"/>
<xs:eiemel1t narne-" content" type."xs:string" minOccurs=" 1" maxOccurs "unbounded"!>
<jxs:sequef'ce>
<jxs:complexTypee>
To assign users who can access a space (say Reports), click on Company Home>Reports>More Action>Manage Space Users>lnvite
</xs:element> <!x~:schern<1"
Save the above content as article.xsd on your desktop. This XSD will be rendered as a Web page us¬ing XSLT (Extensible Style sheet Language Transfor¬mations). Below is the XSLT to render article.xsd:
<?xml version "1.0" enCOCAlnq un 8 <xsl:stytesheet verswn '1.0

xmlns:xhtml..v3.Ng!199Q!xhtml ' xmlns:xsl" '' xmlils xmlns:fn="'lttp:/ JWII\\' .3 OIq. 2005 02 xplth funLtions exclLderesult prefixes="xrtlrl' <xslutpllt method="html" encoding~"UTF-8" indent="yes" doctype-public="-/ /W3(/ /DTD XHTML 1.0 Transitional! /EN" doctype-system=" http://www. w3 .org/TR/xhtm Ll/DTD /xhtmll¬trans itional. dtd "/>
<xsl: preserve-space elements="'" /> <xsl:template match="/">
<htmL xmlns=''http://www.w3.org/1999/xhtmL'' xml:lang="en" lang="en">
<head>
<title><xsl:vaLlie-of seLect-" /pr:article/pr:title" /></title> </head>
<body>
<h 1 ><xsl:value-of seLect="/pr:article/pr:titLe" /></h1> <p><xsl:va lue-of selec t=" / pr: art icle /pr: s u bti tle" /></p> <p>Date d :<xsl :value-of select=" / pr: a rti clef pr: da ted" /></ p> < p> By: <xsl: va lue-of sete ct=" / pr: a rti clef p r: byLi ne" / ></ p> <p><xsl:vaLue-of select=" /pr:article/pr:content" /></p> </body>
</html>
</xsl:template>
</xsl:stylesheet>
Save the above file as article.xsl on your desktop.
WCM allows to preview the website in a sandbox (test server), which need to be set up and run. Let us assume that the IP address of the virtual appliance is 192.168.3.74. Open the file named alfresco¬virtserver.properties found in the directory /var/al¬fresco/virtual-tomcatlconf and change the value of alfresco.virtserver.domain to 192-168-3-74.ip.alfres¬codemo.net. Save the file. Change to /var / alfresco di¬rectory and start sandbox server as: .jvirtuaLalf.sh start.

Also make sure that the appliance is able to access the Internet. This is required because the sandbox server uses a domain name server sitting at ip.alfres¬codemo.net. For more on this, refer to the URL Virtualization_Server.

Create a website

Click on Company Home>Web Projects>Create Web Project. Type in any Name and 'D NS Name' for the web¬site. For 'Deploy To,' type in localhost. Click on Next. N ow click on 'Create Web Form.' Browse and select the file article.xsd. In the subsequent screen click on 'Add to list.' Next for 'Configure Workflow,' click on 'No not now.' Click on Next and then on Finish. On the page titIed 'Configure Web Content Forms,' click on 'Add to list' button for Web form named article. Click on 'Web Form Details.' For the 'Output path pattern' type in /$ {webapp} / {$name} .xml. Click on 0 K Keep clicking on Next, accepting the defaults and finally click on the Finish button. We are setto generate and publish the ar¬ticle or content pages.

Publish the content
On the page title '<site name>,' click on the arrow icon beside 'Web Forms.' Click on 'Create Content.'Type in article1 (say) for Name. Click on Next and fill in the ar¬ticle title, subtitle etc. Click on Finish. On subsequent page, click on the arrow icon beside 'Modified Items.' This will reveal two files: article1.html and article2.html. You can click on the preview icon (eye like icon) beside the article1.html to preview it. The preview is shown in the user's (who is currently logged in) sandbox. That is, the content itself has not gone live. Create more con¬tent/ articles following the same steps. To make the con¬tent live, mark (using the checkbox) the files under 'Modified Items' and click on 'Submit Selected.' Type in any Name and Description for 'Submission Info' and click on OK The content is now promoted to the stag¬ing sandbox. To make the content live, click on arrow icon beside 'Recent Snapshots' and then on the Deploy icon (the icon with a globe and green arrow). Click OK on the 'Deploy Snapshot' page.

After this step, the content will be available on a share named / /<ip-address>/avm/sitelive. Here <ip¬address> is the IP address of the appliance. Browse through the share to find the article.html file. This share can then be mounted on a Windows Web server (by mapping a network drive) or on a Linux Web server (using Samba mount) to make the article files accessible. While setting up the Web project, we skipped setting up users and workflow. The former will allow a team of users with different permissions (authoring, editing, approving, deploying) to con¬tribute to the site development. The latter will allow content submissions to go live following a set approval process. These aspects ofWCM are well explained in the document-http://jaist.dl.sourceforge.netl sourceforge/ alfresco /WCM2_1- Product- Evaluation¬Guide.pdt.