Add Fragments as Sections in a Dynamic Container
You can use existing fragments to define sections in a dynamic container. You also have the option to define a fragment as preferred content for sections.
- With your page open in the Page Designer, drag the Dynamic Container from the Components palette onto your canvas. Here's a dynamic container with the Default Section removed.
- Add a fragment as a section to the dynamic container. Make sure the fragment already exists and is tagged
pageContent
, so it becomes available for selection in a dynamic container.- To add an existing fragment as a section, in the Container Rule Set section, click + Section, then select a fragment in the drop-down list. This list displays all
pageContent
fragments (default tag). Other unused sections (including theDefault Section
) are also listed. - To set a particular fragment as preferred content for all sections in the dynamic container:
- From the Section Fragment list, select the fragment you want to make available to a section. This list displays all
pageContent
fragments (default tag). - Click + Section, then select the preferred fragment in the drop-down list. Only the fragment specified as the Section Fragment can be added to the section (in addition to any unused sections).
- From the Section Fragment list, select the fragment you want to make available to a section. This list displays all
- To add an existing fragment as a section, in the Container Rule Set section, click + Section, then select a fragment in the drop-down list. This list displays all
- Select each section and change the section's title to make it more identifiable. For example, select the first
Panel Fragment
to open the details pane, and then clicknext to the section name to change its title, say, to
User Panel
:Repeat the steps to rename the second
Panel Fragment
; this time, say asContact Panel
. - Select each section and configure its content (fragment) to suit your requirements.
Let's say you have a dynamic container and you want to use a fragment in two different sections, and then modify each section by adding other components. After adding the fragment, you would simply drag components from the Components palette into the sections to configure them as desired. In this example, you can see in the Structure view that each section contains the fragment containing the header component, and one additional component.