AnsweredAssumed Answered

Accessing variables in alfresco-global.properties in YUI/FTL

Question asked by smiller on Jul 9, 2012
Latest reply on Jul 11, 2012 by afaust
(Alfresco version 3.4.8 )

How do I go about accessing properties in alfresco-global.properties within YUI js files or Freemarker FTL files?
I have a set of custom variables, and have extended the javascript api to give me my own custom object, with several methods that extend the object.  So for instance:

myapp.getNetworkName();

When called from the javascript console in share (or in webscripts) would return the value of myapp.network.name property set in alfresco-global.properties.  The problem is I am uncertain of how I would access this custom "myapp" object from within YUI or Freemarker.  Is it even necessary to have these custom javascript calls, when there may already be a method available to call for properties in alfresco-global.properties?

Outcomes