Sightly conditional DIV container | Community
Skip to main content
Level 3
October 16, 2015
Solved

Sightly conditional DIV container

  • October 16, 2015
  • 1 reply
  • 913 views

In Sightly is it possible to conditionally show an DIV container whilst keep showing its contents, or would I have to achieve by conditionally setting the data-sly-unwrap attribute or templates?

Output 1:

<div class="container" data-sly-use.grid="...">
    <div class="row">
    ...
    </div>
</div>

Output 2:

<div class="row">
...
</div>

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by danchapmanme

Got it - data-sly-unwrap="${...}"

1 reply

danchapmanmeAuthorAccepted solution
Level 3
October 16, 2015

Got it - data-sly-unwrap="${...}"