Jahia in English > Not display area...

0 (0 Good)
0 (0 Bad)

Not display area if empty

by  amarianelli »  2012/05/22 07:54

Hi,

I'm trying to create a template like the custom row, but if one column is empty it shouldn't be displayed. The goal is if I have a row like 4-8-4 and the first is empty, it become 12-4.

My question is how can I check if it's empty ? I've tried with the currentNode accessor but I'm to able to make this work. Any idea ? Can I do this with JSTL code ?

Here is my code :

<div class="container_16">
    <c:forEach items="${colMap}" var="col" varStatus="count">
        <div class='grid_${col.value}'>
            /* <c:if test="WHAT CAN BE THE TEST ??"> */
                <template:area path="${currentNode.name}-${col.key}" />
            /* </c:if> */
        </div>
    </c:forEach>
</div>

 

Thanks !

  (amarianelli)

Number of messages  1
Registration date
0 (0 Good)
0 (0 Bad)

Re: Not display area if empty

by  shyrkov »  2012/05/22 21:57

Hello,

what do you mean by "empty"? Does it generate an empty output?

Kind regards

Sergiy

  • Re: Not display area if empty
    2012/05/22 21:57

    shyrkov <p> Hello,</p> <p> what do you mean by &quot;empty&quot;? Does it generate an empty output?</p> <p> Kind regards</p> <p> Sergiy</p>

  • Number of messages  407
    Registration date May 22, 2012
    Contact
    Share
    Feedback

    Get in touch

    Whether you are a current user or if you are just evaluating Jahia, we are here to help.

    Contact us

    Share this page