[opencms-dev] Get the value of a property in order to set another property

Christoph P. Kukulies kuku at physik.rwth-aachen.de
Thu Jul 2 16:32:31 CEST 2009


On Thu, Jul 02, 2009 at 05:06:33AM -0500, Enric Albiach wrote:
> Hi,
> 
> I'm logged in as Administrator and I'm editting the advanced properties of a folder and I want to set the value of a property (my_property) using the value of another property (locale). Something like that:
> 
> locale = es
> my_property = /public/${locale}/css/main.css

You may want to do something like:

<%
   CmsJspActionElement cms = new CmsJspActionElement(pageContext,
request, response);
String locp=cms.property("locale", "search");

%>
<img src="/galleries/left_nav/<%= locp %>_nav.gif" alt="-"/>

--
Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de



More information about the opencms-dev mailing list