-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Learning Alfresco Web Scripts
By :
The web script components are now ready. In order to make them work together, these need to be deployed now. In your Alfresco installed directory, perform the following steps:
Create a folder named example at the location tomcat\shared\classes\alfresco\extension\templates\webscripts.
Put contentlocation.get.desc.xml, contentlocation.get.json.ftl, and contentlocation.get.xml.ftl at the location tomcat\shared\classes\alfresco\extension\templates\webscripts\example.
Put custom-example-webscripts-context.xml at the location tomcat\shared\classes\alfresco\extension.
Create folders com | example | content at the location tomcat\webapps\alfresco\WEB-INF\classes.
Put the compiled Java class ContentLocationWebscript.class at the location tomcat\webapps\alfresco\WEB-INF\classes\com\example\content.
Restart the server.
As we just restarted the server, on a server startup, the web script gets registered. Now in order to confirm this, go to the URL http://localhost...
Change the font size
Change margin width
Change background colour