The class attribute is defined by the device classifications for supported clients in IBM
® Portal. Log in to WebSphere
Portal as an administrator and click Administration
-> Supported clients
. Edit a selected client to see the classes already associated with it. You can add or remove classes through this page.
class = desktop | smartphone | tablet | botUsage
This attribute defines which device class you are specifying. The desktop value is a desktop or laptop computer. The smartphone value is a mobile phone enabled for web browsing. The tablet value is a tablet computer, which is a little larger than a mobile phone display. The bot value renders content that is specific to automated tasks such as search crawlers and can be used to add extra metadata to the page. These parameters shown are the default classes. You can also specify other device classifications as long as they are defined for supported clients.
You should only render the body if the current client matches the specified device class. If the current device is not defined, the device class of this client is empty.
Parent topic: Rendering plug-ins
You can check that a specific device is in use with the following format:
You can check that a specific device is not in use with the following format: