Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.

Enable the mobile emulator by defualt in edit mode

Avatar

Level 1

Hello,

Does anyone know if it's possible to configure the mobile emulator to be enabled by default? To support the growing base of mobile traffic to our sites, we'd like make it easier for editors to build and preview pages from a mobile view. It would be great if there was a configuration or run mode for this, so we don't have to rely on the editors remembering to check the pages in the emulator after editing in the desktop view.

Thanks,

Aaron

2 Replies

Avatar

Community Advisor

Yes Aaron,


Mobile emulator can be enabled by including simulator,jsp in template component(preferably in head )

head.jsp

<cq:include script="/libs/wcm/mobile/components/simulator/simulator.jsp"/>

head.html(Sightly)

<sly data-sly-include="/libs/wcm/mobile/components/simulator/simulator.jsp"></sly>

/Brijesh Yadav

Avatar

Level 1

Thanks for the quick response Yadav Brijesh​. The simulator.jsp looks promising, but seems to be targeting Classic UI. At least the version in 6.1 does. I was hoping for a way to have the mobile emulator on by default when the page is opened in authoring mode with Touch UI. We were able to add some JS to the page to click the Emulator button after the page loads, but this doesn't seem like the correct approach. Is there anyway, to enable the emulator from within Touch UI?

Thanks,

Aaron