Layout templates for static pagesAdded by IBM | Edited by IBM on January 9, 2013 | Version 2 (Show original)
|To enable device support, which represents your static page for different device classes, bundle the static markup files that are device-class-specific into a compressed file.
Observe the following naming conventions for your device-specific files:
- For a base file base_file_name.file_name_extension, you need to name the device-specific version of the file base_file_name_device.file_name_extension.
For example, for a base file named my_page.html, the smartphone-specific version of the file is my_page_smartphone.html, and the tablet-specific version of the file is my_page_tablet.html. Although these files have different file names, they logically represent the same resource and are referenced by references to their base name. The portal serves the device-specific version of the resource when appropriate.
- For localized, device-specific files, observe the following naming convention: For a base file named my_page.html, the smartphone-specific English version of the file is my_page_smartphone_en.html, and the smartphone-specific US English version of the file is my_page_tablet_en_us.html.
These naming conventions also apply for the definition of static portal pages in HTML. For more information see Defining and rendering a static portal page in HTML.
Parent topic: Device classes
Previous topic: Assigning device classes
Defining and rendering a static portal page in HTML