cancel
Showing results for 
Search instead for 
Did you mean: 

Custom JavaScript

anfy2002us
Champ in-the-making
Champ in-the-making
In which file I can registrer my custom javascript object.
Thanks in advance
3 REPLIES 3

kevinr
Star Contributor
Star Contributor
Take a look in:
config/alfresco/script-services-context.xml
- use the usual Alfresco bean overriding mechanism to override this file.

Thanks,

Kevin

anfy2002us
Champ in-the-making
Champ in-the-making
My question is  in which file I can add this tags from the wiki for JavaScript API

<bean id="loggerScript" parent="baseScriptImplementation" class="org.alfresco.repo.jscript.ScriptLogger">
   <property name="scriptName">
      <value>logger</value>
   </property>
</bean>

kevinr
Star Contributor
Star Contributor
config/alfresco/script-services-context.xml

Information on extending standard files can be found here:
http://wiki.alfresco.com/wiki/Repository_Configuration