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.
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>
View solution in original post
Ah.. i need to refresh the page in order to pick up the change when i swap modes.
Thanks,
Views
Likes
Replies