How to force a page reload when switching between Edit, Design, and Preview Mode

Question

How do I configure the sidekick to reload the page when I switch the mode between Edit, Design and Preview?

Answer, Resolution

Configure an overlay for the contentfinder config to have sidekick/previewReload="true"

  • See attached sample configuration for CQ5.1GA and CQ5.2.0 here

For CQ5.2.1 you must modify your init.jsp script to include the previewReload="true" setting as shown below:

CQ.WCM.launchSidekick("<%= currentPage.getPath() %>", {
    propsDialog: "<%= dlgPath == null ? "" : dlgPath %>",
    locked: <%= currentPage.isLocked() %>,
    adminUrl: "/siteadmin",
    previewReload: "true"
});

Applies To

CQ5.X

Download

 Adobe

Dapatkan bantuan lebih cepat dan lebih mudah

Pengguna baru?

Adobe MAX 2024

Adobe MAX
Konferensi Kreativitas

14–16 Oktober Miami Beach dan online

Adobe MAX

Konferensi Kreativitas

14–16 Oktober Miami Beach dan online

Adobe MAX 2024

Adobe MAX
Konferensi Kreativitas

14–16 Oktober Miami Beach dan online

Adobe MAX

Konferensi Kreativitas

14–16 Oktober Miami Beach dan online