To familiarize yourself with the approach to creating an extension module, walk through a simple Hello World example.
-
Find the component you want to extend using Surfbug.
-
Create your extension model definition.
<TOMCAT>/shared/classes/alfresco/web-extension/site-data/extensions/hello-world-extension.xml
-
Create the web script description document
hello-world.get.desc.xml as follows:
<webscript> <shortname>Hello World</shortname> <description>Hello World</description <url>/components/extensions/hello-world</url> </webscript>
-
Create the web script response template
"hello-world.get.html.ftl"
<h1>HELLO WORLD</h1>
-
Create the web script description document
hello-world.get.desc.xml as follows:
-
Deploy the extension model for the following result.