[opencms-dev] ContentShow

Marcus Popetz marcus at roundpeg.com
Wed Oct 12 13:47:08 CEST 2005


At 03:34 PM 10/11/2005, John Mitchell wrote:
>  I would like to get the content of an element using contentshow but I´ve 
> got a problem. I can acces successfully using a code like this: 
> <cms:contentshow element="Text" /> but this generate a code that is 
> directly put on the screen,
>  how can i store that in a variable an transform easily?
>  I would like to change the following tag <img src="imagen.gif"/> for 
> this one
>  <div something else><img src="imagen.gif"/></div> . For this I´m 
> thinking in using regexp but i donñt them. I need to learn lisp?

Check out the jstl tag <c:set>  You can wrap those around your contentShow 
tag and it'll store it in a variable for you.

-mp




More information about the opencms-dev mailing list