« Return to Thread: We have setup a public OpenCms Maven2 Repository

Re: Get the value of a property in order to set another property

by Christoph P. Kukulies :: Rate this Message:

Reply to Author | View in Thread

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

_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev

 « Return to Thread: We have setup a public OpenCms Maven2 Repository