Page Variants Not Shown for Mobile Devices
(Doc ID 2507441.1)
Last updated on JULY 27, 2024
Applies to:
Oracle WebCenter Portal - Version 12.2.1.1.0 to 12.2.1.1.0Information in this document applies to any platform.
Symptoms
Page Variants Not Shown for Mobile Devices.
STEPS
The issue can be reproduced at will with the following steps:
- Connect to WebCenter Portal as an Administrator user.
- Navigate to Administration->Device Settings.
- Select the Devices Tab.
- Click Create.
- Create a Device.
e.g.: iPhoneX
- Provide the Name, Display Name, User Agent and Description properties.
- Fill in the Optional and Additional Attributes as needed.
- Click OK.
- Provide the Name, Display Name, User Agent and Description properties.
- Add the Device to a Device Group.
- Select the Device Groups tab.
- Select the "iOS Phones" device group and click Actions -> Edit.
- Move the "iPhoneX" device to the list of Selected Devices".
- Select the Device Groups tab.
- Create a Page in a Portal.
- Navigate to a Portal.
- Create a Page.
For example: Page1 - Edit the page and add and "HTML Markup" component.
- Edit the Display Options of the HTML component and set the following in the Value field:
This is the Desktop Page. <br><br>
Device Name: #{DeviceAgent.device.name}<br>
Device Display Name: #{DeviceAgent.device.displayName}<br><br>
Device Group: #{DeviceAgent.currentScopeDeviceGroup.name}<br>
Device Group Display name: #{DeviceAgent.currentScopeDeviceGroup.displayName}<br><br>
Current Browser User Agent: #{DeviceAgent.userAgent}<br> - Click OK.
- Save the page changes.
- If you have enabled Page Drafts Publish the changes to Page.
- Create a Page Variant for the new device.
- Get back to Pages.
- From the Page1 actions select: Add -> New Page Variant.
- Select : iOS Phones.
- Select the Check Box : Copy Base Page Content and Style.
- Click Create.
- Edit the Display Options of the HTML component in the "iOS Phones" Page Variant and set the following in the Value field:
This is the iOS Phones Page Variant. <br><br>
Device Name: #{DeviceAgent.device.name}<br>
Device Display Name: #{DeviceAgent.device.displayName}<br><br>
Device Group: #{DeviceAgent.currentScopeDeviceGroup.name}<br>
Device Group Display name: #{DeviceAgent.currentScopeDeviceGroup.displayName}<br><br>
Current Browser User Agent: #{DeviceAgent.userAgent}<br> - Click OK.
- Save the page changes.
- If you have enabled Page Drafts Publish the changes to Page.
- View the Page1 from a Desktop.
You will see the Desktop Page is displayed. - View the Page1 from an iPhoneX Mobile Device.
You will see the Desktop Page is displayed.
So the Page Variant is not shown
This is the issue.
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Cause |
Solution |
References |