You are here

Web scripts

Web scripts provide a way to write small extensions to Alfresco using JavaScript and FreeMarker.

Web scripts can run in the repository tier, or the presentation tier.

Important: For Alfresco One 5.0 and Alfresco Community 5.0 the Rhino JavaScript engine was upgraded to version 1.7R4. This can in certain rare circumstances break existing web script code. This can happen where JavaScript-based web scripts pass a string to the model, prior to it being passed to the FreeMarker template. The string must be fully converted, using the toString() method. If you notice that previously working web scripts no longer work, then this possible reason should be investigated.