• Resolved ymorin007

    (@ymorin007)


    Hi,

    Is it possible to add if statement inside the review template.

    For example if the pros variable is empty don’t show the pros text:

    <div class=”glsr-review” data-type=”local” id=”review-{{ review_id }}” data-assigned='{{ assigned }}’>
    {{ title }}
    {{ rating }}
    {{ date }}
    {{ assigned_links }}
    {{ content }}
    if pros Not empty
    Pros
    {{ pros }}
    endif
    Cons
    {{ cons }}
    {{ avatar }}
    {{ author }}
    {{ response }}
    </div>

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Review template if statement’ is closed to new replies.