java - Liferay: Get URL in portal.normal.vm from properties file -


i have problems read info properties file "liferay-portal-6.1.0/tomcat-7.0.23/lib/myweb-application.properties" in portal_normal.vm myweb-application.properties:

redirect.docs.url = http://stackoverflow.com/questions/ask 

"liferay-portal-6.1.0/tomcat-7.0.23/webapps/web-theme/templates/portal_normal.vm":

 #set ($docsurl =  $propsutil.get("redirect.docs.url"))  <a href="$docsurl">#language("foot.docs")</a> 

propsutil (or $propsutil) accesses portal.properties, typically configured through portal-ext.properties. unless add myweb-application.properties "external properties" file, propsutil won't find it.

one way add line portal-ext.properties:

  include-and-override=/path/to/myweb-application.properties 

but make sure it's not using same keys portal.properties different purposes.


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -