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

AEM6 sp2 Touch UI force refresh on switch to preview

Avatar

Level 2

Is it possible to force refresh when switching to preview mode in TouchUI?

In Classic you can set the previewReload:"true" when launching the sidekick (see below), however I can't find anything similar to enable this in Touch UI.

ClassicUI

<script data-sly-test="${!wcmmode.disabled && !wcmInit.isTouchAuthoring}" type="text/javascript">

CQ.WCM.launchSidekick("${currentPage.path @ context='uri'}", {

        propsDialog: "${wcmInit.dialogPath @ context='uri'}",

        locked: ${currentPage.locked @ context="scriptString"},

        previewReload: "true"

    });

</script>

Any assistance would be greatly appreciated.

1 Accepted Solution

Avatar

Correct answer by
Level 10

I dont think anything is there for Touch UI. However authors can refresh the page after changing the mode.

you can raise a ticket for the same and see if they have any alternative !

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

I dont think anything is there for Touch UI. However authors can refresh the page after changing the mode.

you can raise a ticket for the same and see if they have any alternative !