user1429166
user1429166

Reputation: 131

Accessing values from Alfresco's alfresco-global.properties file by javascript controller of a web script?

I found out its possible to access the global properties of an alfresco instance by exposing the following property in a bean definition.

<property name="properties">
    <ref bean="global-properties"/>
</property>

But I want to access the global properties by the javascript controller of a webscript. How is this possible?

running alfresco 3.4.d

Upvotes: 2

Views: 1411

Answers (1)

plus-
plus-

Reputation: 46543

I'm not sure if there is a root object for global properties,

but any information available in a Spring bean can be available to a javascript controller using ProcessorExtension an ScriptProcessorRegistry mecanism of the Surf Framework.

using them you can define and add your own root object with the properties (method) you'd like to have.

Upvotes: 2

Related Questions