Valid for Sitecore
5.2, 5.1.1
Configure Layout Devices for a Template
Prev Next |
To configure the way Items associated with a Template will display on various Devices:
- Log in to Content Editor as a user with appropriate permissions (Content Editor can also be accessed directly from the Sitecore Desktop).
- Select Layout from the first entry in the treecrumb (the default selection is Content).
- Select the Devices node.
- If New Device is not visible, select View » Toolbar.
- Select New Device and enter a logical name for the device (for example, Print or Firefox).
- If this Device should be used by default for unrecognized or unspecified devices, select the Default checkbox.
- If this Device is not the Default device, you may select a Fallback Device to use if no Layout is specified for this Device for a given item.
- If the Device can be detected from the browser user-agent, enter the identifying portion of the user-agent string in the Browser Agent field, for instance “Gecko”. Alternatively enter the URL parameter to match in the Query String field, for instance “print=1”. Note that rendering logic will be responsible for creating links with such URL parameters.
- If this Device will be the default for an entire domain or subdomain, set the device attribute to the name of this default Device in the <site> element referencing that domain or subdomain in the <sites> section of web.config, for instance <site hostname="pda.company.com" device="pda" ...>.
- The Device Item will need to be published before it can be used on the published site.
Prev Next