In AEM 6.0, using
data-sly-test="${wcmmode.edit}"
would be false in "preview" mode in the authoring instance. However, this is no longer the case in 6.1. Trying to use ${wcmmode.preview} also doesn't work. Is there a way to determine if the page is in preview mode in sightly?
Thanks
Solved! Go to Solution.
Just tested this in AEM6.1, and works just fine.
<div data-sly-test="${wcmmode.edit}">
edit...
</div>
<div data-sly-test="${wcmmode.preview}">
preview...
</div>
Just tested this in AEM6.1, and works just fine.
<div data-sly-test="${wcmmode.edit}">
edit...
</div>
<div data-sly-test="${wcmmode.preview}">
preview...
</div>
Ah.. i need to refresh the page in order to pick up the change when i swap modes.
Thanks,
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies