Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Custom Site properties
Matias
Hello,
Is there any recommended place to set custom site properties to be accessed by controllers and externals?
I noticed that the default.site file has an InternalProperties element defined but it's not editable from the UI.
Find more posts tagged with
Comments
Migrateduser
Hello,
Please suugest what kind of custom properties.
Matias
bmazum,
Thanks for your question. For example, we have some web services that our livesite components will be consuming.
Different sites will be running on the same runtime instance, but each one may need to call a different webservice (with a different URL).
So these URLs need to be configured on a per-site basis.
cecilb63
You could add a ConfigurationListener to the web.xml of the LSDS application and in that class load your own properties file. You could either load a different property file or have a single property file that has separate sections based on the environments in which it may be run. Either way you'd check a jvm argument that is set different for each app server environment.
Also looks through the samples which have a properties solution.