We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 24629
    • 370 Posts
    Hi,
    im trying to hide the [[+tags]] on my Articles when there are no tags.
    Thing is i have a small container
    <div class="side-panel hide-on-print"><h2>Trefwoorden</h2>
        <div class="sideblock">
            [[+tags]]
        </div>
    </div>
    


    since the length of [[+tags]] is apparently more then 0 even if there are NO tags (in my case 270) i need to find a way to hide the whole chunk when the length is longer then 270.
    i tried
    [[+tags:strlen:gt=`272` :then=`[[+tags]]`]]
    

    but that doesn't seem to work
    any ideas?

    RDG
      • 38783
      • 571 Posts
      Is it just the space between `272` and : that is causing it not to work?

      Although if you want to hide the whole chunk when the length is longer than 270 then I think this ought to work?

      [[+tags:strlen:gt=`272`:then=``:else=`[[+tags]]`]]
        If I help you out on these forums I would be very grateful if you would consider rating me on Trustpilot: https://uk.trustpilot.com/review/andytough.com

        email: [email protected] | website: https://andytough.com
        • 24629
        • 370 Posts
        Hi tnx,
        I found it its the 'gt' greater then is 'gte' strangely enough . now it works