Expand my Community achievements bar.

SOLVED

Sightly conditional DIV container

Avatar

Level 4

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>

1 Accepted Solution

Avatar

Correct answer by
Level 4

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

View solution in original post

1 Reply

Avatar

Correct answer by
Level 4

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