[opencms-dev] Showing Elemnt in Structured Content

Alain TOMASIAN alain.tomasian at naos.com
Fri Nov 3 12:13:34 CET 2006


Hi,

You can try this :

<c:set var="booleanVal">
       <cms:contentshow element="BooleanVariable" />
</c:set>

<%
  boolean value = boolean value =
Boolean.parseBoolean(pageContext.getAttribute("booleanVal").toString()) ;
                    if (value)
                    {
                      ............
 %>

Regards,
__________________________________________
 Alain TOMASIAN - NAOS Technologies
 33, avenue Philippe Auguste - 75011 PARIS
 +33 1 402 402 86 - http://www.naos.com
__________________________________________
Découvrez notre service d'email marketing
           http://www.enews.fr
__________________________________________

> Hi,
>
> we are using structured Content in Opencms. Everthings works fine, now
> we have to show content depending on a boolean value defined in the schema.
>
> If the boolean value is true a html snipped should be shown, otherwise
> it should be hidden.
>
> The following contentcheck of the boolean variable is always true
> because it check the existing...
> <cms:contentcheck ifexists="BooleanVariable">
> ..
> <cms:contentcheck>
>
> How can we check the value not the existing?
>
> Thanx and best regards
>
> Thomas
>
>
> --
> Mit freundlichen Grüßen
>
> Thomas Kiesl
>
> --
> BLUE MARS - Gesellschaft fuer digitale Kommunikation mbH
>
> Thomas Kiesl               mailto:thomas.kiesl at bluemars.net
> Software Developer         http://www.bluemars.net
> Ebersheimstraße 5          T +49.69.469973-0
> 60320 Frankfurt am Main    F +49.69.469973-99
>
> _______________________________________________
> 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
>







More information about the opencms-dev mailing list