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

Invoking a web script from Alfresco Share


When working on customizing Alfresco Share, you will need to make a call to Alfresco repository web scripts. In Alfresco Share, you can invoke repository web scripts from two places. One is the component level presentation web scripts, and the other is client-side JavaScript.

Calling a web script from the presentation web script JavaScript controller

Alfresco Share renders the user interface using the presentation web scripts. These presentation web scripts make a call to the repository web script to render the repository data. Repository web script is called before the component rendering file (for example, get.html.ftl) loads.

In out-of-the-box Alfresco installation, you should be able to see the components' presentation web script available under tomcat\webapps\share\WEB-INF\classes\alfresco\site-webscripts.

When developing a custom component, you will be required to write a presentation web script. A presentation web script will make a call to the...