Creating the dynamic list page | HCL Digital Experience
This roadmap describes how to create the dynamic list page component of the design from an HTML component. The dynamic list page component is used on the Home, Product, and Events page.
Who should use this roadmap
You are a developer on the technical team that is tasked with creating home and landing page templates for content authors to use on the site. You are responsible only for creating page components and design templates. Other developers are responsible for developing other pieces of the design. Learn the basics of developing the dynamic list page component.
Creating your dynamic list page component
Before you begin
Procedure
- Click the Applications menu icon. Then, click .
- Go to your design library.
-
Click
to create a menu component.
-
Click
.
-
Click the following link in the Information dialog box to customize the
page component:
. For example, click .Note: If you close the Information dialog box, you can follow the path in your design library.
- Click Edit.
- Click Manage Elements.
- Delete all of the listed default elements before you create a customized element for the page component.
-
Create a list element:
-
Click the Default Content tab.
-
Click the following icons, select the Hide field check box, and then
click Hide:
- Display link as
- Link Text field property
- Managing references in the Link Attributes section
- Link description
- Link Query string
- Link target
- Link Additional attributes
- Click the drop-down menu on the Save and Close button. Then, select Save and Read.
- Click Apply Author Template to update the content associated with this authoring template.
- Select the Add new elements and Remove existing elements check boxes.
- Click OK.
- Click Close to close the authoring template.
-
Click the following link in the Information dialog box to customize the
page component:
. For example, click .Note: If you close the Information dialog box, you can follow the path in your design library.
- Click Edit.
-
Delete the default text in the Presentation Template Options text box.
Then, enter the following information:
[IfEditMode] <p><strong>Configure this list to show items in the path:</strong> [EditableElement:list_path placeholder="Select context" format="span" callback="location.reload();"] [Element:list_path format='titlepath'] [/EditableElement:list_path]</p> [/IfEditMode] [RequestAttribute key="list_path" value="[Element:list_path format='namepath']"] [Component name="Greenwheels Design/list/list"]
This text allows Krista to select the path where the list items are coming from. This selection is shown only in edit mode. It then passes this path into the menu component as a query parameter by using the RequestAttribute tag. Finally, it renders the menu component. - Click Save and Close.