In this use case, add a legacy viewport component to a page and create a subpage to create separate content on the page.
Before you begin
Role required: ui_builder_admin
This video shows you how to perform the following procedure.
Procedure
-
Navigate to .
-
Open an experience or create an experience by selecting + Create.
-
Create a page variant and open the page.
-
Select + Add component in the content tree.
-
In Search components, enter viewport.
-
Select the Viewport component.
-
On the Configure panel, select Replace with viewport.
-
In the pop-up, select Replace with viewport configuration.
-
Select Save.
-
On the Configure panel, select Edit content.
-
Select Create new page.
-
In Name, enter subpage.
-
Select Continue.
-
Select Looks good.
-
Select Create.
-
In the message at the top, select Open in editor.
-
Select + Add component in the content tree.
-
In Search components, enter list.
-
Select the List - Simple component.
-
Select Save.
-
At the top, select Back to Default.
-
Select Body in the content tree.
-
In the configuration panel, select the Events tab.
-
Select + Add event mapping.
-
Select Page ready.
-
In the pop-up, select UXF Macroponent Viewport Load Requested.
-
In the code, edit the viewportElementId by deleting null and entering "viewport_1".
-
In the code, edit the route by deleting null and entering "subpage".
-
Select Add.
-
Select Save.
-
To test, select the down arrow on the Preview button and select Open URL path.
-
When you're finished, close the browser tab showing the URL path.
Result
You added a legacy viewport component to a page and then created a subpage for separate content.