accessing alfresco-global.properties from FTL
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2014 07:02 AM
Hello,
How can I access a property defined in alfresco-global.properties , from the FTL file of my webscript in ALfresco Share ?
Regards,
Sofia.
How can I access a property defined in alfresco-global.properties , from the FTL file of my webscript in ALfresco Share ?
Regards,
Sofia.
Labels:
- Labels:
-
Archive
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2014 02:35 AM
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.
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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2014 07:07 AM
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.
Regards,
Sofia.
