Check Touch UI Mode in Sightly HTML[AEM 6.2]

Avatar

Avatar

cquser1

Avatar

cquser1

cquser1

07-02-2017

Hi All,

We are using 6.2 and just giving <div data-sly-test="${wcmmode.edit}">Edit Column Control</div> is not working[If I change to preview mode in author, it still shows up the text]..

Tried the thing mentioned in http://wcmaem.blogspot.in/2016/07/how-to-check-touch-ui-mode-in-sightly.html but no luck.

Any reference code/pointers will be helpful.

Replies

Avatar

Avatar

susheel

Avatar

susheel

susheel

07-02-2017

Hi,

When you click on preview for some reason the view doesn't change directly.

We need to refresh the page to see the actual behavior.

You can append wcmmodes to your url to check the behavior to confirm.

wcmmode=edit, wcmmode=preview, wcmmode=disabled

Anyhow, this would work fine in publish server, so you need not worry.

- susheel

Avatar

Avatar

cquser1

Avatar

cquser1

cquser1

08-02-2017

Hi All,

Thank you for your reply.

<div data-sly-test="${wcmmode.edit}"> isn't working as expected, when even on page refresh.

Avatar

Avatar

Prince_Shivhare

Avatar

Prince_Shivhare

Prince_Shivhare

08-02-2017

hey,

please check this link:

http://blogs.adobe.com/experiencedelivers/experience-management/htl-intro-part-1/

sample8.html, sample2.html and sample3.html

It can help yours.

- Prince

Avatar

Avatar

Gdubz-57m2mu

Avatar

Gdubz-57m2mu

Gdubz-57m2mu

08-02-2017

adobecquser cq wrote...

Hi All,

Thank you for your reply.

<div data-sly-test="${wcmmode.edit}"> isn't working as expected, when even on page refresh.

 

Edit / Preview has always worked this way.

As susheel has already said, if you want to see a true preview of what your page would look like in Publish, I suggest keeping a second tab open of your page with ?wcmmode=disabled appended to the end of it. I would also remove the "/cf#/" or the "/editor.html/" part of the URL too, so you're not loading anything that wouldn't load on Publish.

Avatar

Avatar

susheel

Avatar

susheel

susheel

08-02-2017

Oh that's nice. Thanks for the info. But this should been given by default in touch UI mode by AEM

Avatar

Avatar

leeasling

Avatar

leeasling

leeasling

08-02-2017

I don't disagree, but at least there's a relatively easy work around.