Level 1
Level 2
Sign in to Community
Learn more
Sign in to view all badges
Expand my Community achievements bar.
This conversation has been locked due to inactivity. Please create a new post.
I included adaptive image component in another component.
I do not want this div to be generated if the image is not authored.how can i use data-sly-test in this context?
<div class="col-content-inner">
<div data-sly-resource="${@path='adaptiveimage', resourceType='/apps/mda/components/content/adaptiveimage'}"> </div>
Solved! Go to Solution.
This should unwrap the image when you are not in edit-mode.
<div data-sly-unwrap="${!wcmmode.edit}" data-sly-resource="${@path='adaptiveimage', resourceType='/apps/mda/components/content/adaptiveimage'}"> </div>
View solution in original post
Views
Likes
Replies