cancel
Showing results for 
Search instead for 
Did you mean: 

JS in an amp for rules

abruzzi
Champ on-the-rise
Champ on-the-rise
If I want a script to be available for "folder rules" I know I can create the script in the repository in /Company Home/Data Dictionary/Scripts/ and it becomes available.    However I'd like to create a few scripts that support the project I'm building, and I'd like to be able to deploy the scripts via the amp.  I haven't seen any clear documentation if this is possible, and if so, where exactly to put them, or how to tell alfresco where they are.  Anyone done this?

Geof
1 REPLY 1

kaynezhang
World-Class Innovator
World-Class Innovator
You can place your js files in amp classpath and import them into repository's Company Home/Data Dictionary/Scripts/ folder.
About how to bootstrap files/spaces into repository, you can refer to here http://docs.alfresco.com/4.2/concepts/dev-extensions-modules-bootstrapping-files-spaces-xml.html