[opencms-dev] passing variables to container or accessing elements in nested containers

Christoph Kukulies kuku at physik.rwth-aachen.de
Tue Feb 16 12:23:31 CET 2016


I would like to pass a variable (e.g. integer 1,2,3) to a container.
Or access the name of the container in the rendered container code.

<div class="four columns">
         <cms:container name="footer-widget-2" type="footer-widget"  >
             <h3>
                 please insert content here...
             </h3>
         </cms:container>
     </div>


In the formatter for the footer-widget there is a

<div class="grey-footer-link" id="menu-top"> ...</div>

Since this can be invoked several times I would like to construct
something like id="menu-top-${value}" to avoid multiple ids of the same 
name.

How can I achieve that?

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



More information about the opencms-dev mailing list