Configuration

Adaptive rendering selectors can be configured for existing device groups or to groups that you have created yourself.

For this example, you are going to configure the existing device group Smart Phones to have an adaptive rendering selector as part of the Experience Page template within We.Retail.

  1. Edit the device group that requires an adaptive selector in http://localhost:4502/miscadmin#/etc/mobile/groups

    Set the option Disable Emulator and save.

    chlimage_1-157

  2. The selector is available for the BlackBerry® and iPhone 4 provided the device group Smart Phone is added to the template and page structures in the following steps.

    chlimage_1-158

  3. Using CRXDE Lite, allow the device group to be used on your template by adding it to the multi-value string property cq:deviceGroups on the structure of your template.

    /conf/<your-site>/settings/wcm/templates/<your-template>/structure/jcr:content

    For example, if you want to add the Smart Phone device group:

    /conf/we-retail/settings/wcm/templates/experience-page/structure/jcr:content

    chlimage_1-159

  4. Using CRXDE Lite, allow the device group to be used on your site by adding it to the multi-value string property cq:deviceGroups on the structure of your site.

    /content/<your-site>/jcr:content

    For example, if you want to allow the Smart Phone device group:

    /content/we-retail/jcr:content

    chlimage_1-160

Now when using the emulator in the page editor (such as when modifying the layout) and you choose a device of the configured device group, the page is rendered with a selector as part of the URL.

In this example, when editing a page based on the Experience Page template, and choosing iPhone 4 in the emulator, the page is rendered including the selector as arctic-surfing-in-lofoten.smart.html instead of arctic-surfing-in-lofoten.html

The page can also be called directly using this selector.

chlimage_1-161

Experience Manager


Driving Marketing Agility and Scale: Transforming your Content Supply Chain with AI

Online | Strategy Keynote | General Audience

Marketers everywhere are feeling the pressure to deliver impactful campaigns faster and at greater scale. This Strategy Keynote explores...

Tue, Mar 18, 2:30 PM PDT (9:30 PM UTC)

Register

Put the Customer at the Center and Build Relationships That Last a Lifetime

Online | Strategy Keynote | General Audience

First impressions last a lifetime. Great first impressions feel personal, connected, and relevant right from the start. From the first...

Wed, Mar 19, 2:30 PM PDT (9:30 PM UTC)

Register

Connect with Experience League at Summit!

Get front-row access to top sessions, hands-on activities, and networking—wherever you are!

Learn more