[opencms-dev] opencms 6 | macros in contentshow

Joachim Zittmayr joachim at imap.cc
Fri Oct 13 18:42:13 CEST 2006


hi list!
is it possible to use macros in the contentshow-tag?
actually i want to access one specific element of a range of elements,
no matter how the implementation will look like.
of course taglib-style is preferred.

for example:
            <%pageContext.setAttribute("someElement", "5");
            <c:set var="someElementNumber">
                SubPage[<%=pageContext.getAttribute("someElement")%>]/SubPageTitle
            </c:set>

and somewhere else

            <o:contentshow element="${pageContext.someElementNumber}"/>

instead of printing out the someElement-element it just prints

           SubPage[5]/SubPageTitle

any hints?
thanks in advance!
joachim
-- 
  Joachim Zittmayr
  joachim at imap.cc

-- 
http://www.fastmail.fm - Email service worth paying for. Try it for free




More information about the opencms-dev mailing list