cancel
Showing results for 
Search instead for 
Did you mean: 

accessing alfresco-global.properties from FTL

sofia
Champ in-the-making
Champ in-the-making
Hello,

How can I access a property defined in alfresco-global.properties , from the FTL file of my webscript in ALfresco Share ?


Regards,
Sofia.

2 REPLIES 2

aaditvmajmudar
Confirmed Champ
Confirmed Champ
As far as I know,

You will have to make entry of alfresco-global.proeprties file in your custom-sligshot-application-context.xml file.

<beans>
   <bean id="webscripts.resources" class="org.alfresco.i18n.ResourceBundleBootstrapComponent">
      <property name="resourceBundles">
         <list>
             <value>alfresco-global</value>
         </list>
      </property>
   </bean>
</beans>

After this, you can access property in presentation webscript ftl file like, ${msg("dir.root")}.

Hope this helps.

sofia
Champ in-the-making
Champ in-the-making
Thank you for the reply , I'm gonna try to use this technic ,and it seems to be the correct way to do it .

Regards,

Sofia.