The adaptive template rendering provides a way to manage a page with variations. Originally useful to deliver various HTML outputs for mobile devices (for example, feature phone versus smart phone), this feature is useful when experiences have to be delivered to various devices that need different markup or HTML output.
Templates are built around a responsive grid, and pages created based on these templates are fully responsive, adjusting automatically to the viewport of the client device. Using the Emulator toolbar in the page editor, authors can target layouts to specific devices.
It is also possible to set up templates to support adaptive rendering. When device groups are properly configured, the page is rendered with a different selector in the URL when selecting a device in the emulator mode. Using a selector a specific page rendering can be directly called via the URL.
Remember when setting up your device groups:
The device group **Responsive Devices never have a selector because devices that are recognized as supporting responsive design are assumed to not need an adaptive layout
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.
Edit the device group that requires an adaptive selector in
Set the option Disable Emulator and save.
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.
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.
For example, if you want to add the Smart Phone device group:
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.
For example, if you want to allow the Smart Phone device group:
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
The page can also be called directly using this selector.