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

Extending your default project to create web scripts


While developing web scripts in the previous chapters, we did not follow any project structure and developed the required files for a web script independently in an editor of our choice and then manually deployed them at the appropriate locations in the installed Alfresco directory. Now, having understood the project structure and the AMP deployment package, it is time to discover how we can extend the default project structure in order to create web scripts. Let's try to understand where you should place the web script-related files in the project structure while developing new web scripts:

  • The web script descriptor file (*.desc.xml), response templates for the web script (*.ftl), configuration document for the web script (*.config.xml), and message bundles (*.properties) should be placed under the location src/main/amp. Inside the default structure available in src/main/amp/config/alfresco, create a new folder structure, /extension/templates...