Book Image

Learning Alfresco Web Scripts

By : Ramesh Chauhan
Book Image

Learning Alfresco Web Scripts

By: Ramesh Chauhan

Overview of this book

Table of Contents (18 chapters)
Learning Alfresco Web Scripts
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Naming conventions – the most important thing


It is important to follow the naming conventions for the web script documents. The following are the naming conventions that must be followed for each web script document:

Component

Naming convention

Description document

<web script id>.<http method>.desc.xml

Controller script

<web script id>.<http method>.js

Response template

<web script id>.<http method>.<extension>.ftl

Configuration document

<web script id>.<http method>.config.xml

Resource bundle

<web script id>.<http method>[_<locale>].properties

Locale is basically a combination of the language code and country code, for example, en_US, where en is the language code and US is the country code.

Note

The <web script id> is the identifier of the web script, and must be a unique value in the web script package. For example, you can have helloworld.get.desc.xml in two different web script packages,...