O'Reilly logo

Alfresco 3 Cookbook by Snig Bhaumik

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Writing and executing scripts

There are a few options and implementation models by which you can write your JavaScript files and execute them in Alfresco. A couple of the most usual models are:

  • Writing and storing scripts in the Data Dictionary
  • Using Web Scripts

We will explore Web Scripts later in Chapter 10. However, in this recipe, we will see how to write and execute simple scripts from the Data Dictionary.

Getting ready

  1. Open the Alfresco explorer and navigate to the Company Home | Data Dictionary | Scripts folder.
    Getting ready
  2. This is the space where all the JavaScript files should be stored. Alfresco explorer looks for JS files by default from this location. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required