Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
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="${...}"