Managing Placeholders of a Component Template

The Content tab of the detail view allows for managing placeholders of a component template.

Adding Placeholders

To add a placeholder to a component template:
  1. Select the management context from the context selection box, then select Content | Component Templates.
    This opens the Component Templates tree view.
  2. Click the name or ID of the component template you intend to edit.
    This opens the Content tab of the detail view.
  3. In the Placeholders section, click the icon.
    This opens the New Placeholder dialog.
    Note: You can also create a placeholder using the Create Placeholder link in the intended target section. Doing so will already set the type and the placeholder assignment.
  4. Edit the details as necessary.
    Specify a name, edit the ID as required, and select a slot type.
    Tip: In a component template derived from another user-defined component template, you can assign the current placeholder to a placeholder of the same type passed from the parent template. To do so, select the intended "parent" placeholder in the Placeholder Assignment field.
  5. Click Apply.
    This creates the placeholder and displays the list of components allowed to be assigned. By default, all allowed components are selected. For details about restricting the allowed components, see Defining Placeholder Constraints.

Editing Placeholder Details

To modify the details of a placeholder:
  1. Navigate to the intended placeholder.
    Select the management context from the context selection box, then select Content | Component Templates. Click the name or ID of the component template you want to edit to open the detail view, then scroll to the Placeholders section.
  2. Click the icon next to the placeholder to be edited.
    This opens the placeholder details.
  3. Edit the details as necessary, and click Apply.
    Clicking Back returns you to the component template detail view.

Defining Placeholder Constraints

To restrict the allowed components for a placeholder:
  1. Navigate to the intended placeholder.
    Select the management context from the context selection box, then select Content | Component Templates. Click the name or ID of the component template you want to edit to open the detail view, then scroll to the Placeholders section.
  2. Click the icon next to the placeholder to be edited.
    This opens the placeholder details.
  3. Open the Constraints tab.
    This lists all available elements.
  4. Use the checkboxes to define the components to be allowed for the current placeholder.
    A selected checkbox makes the components based on the corresponding component template available for being assigned to the current placeholder. An unmarked checkbox, however, restricts components based on the corresponding component template from being available for assignments to the current placeholder.
  5. Click Apply.
    Clicking Back returns you to the component template detail view.

Deleting Placeholders

To delete a placeholder from a component template:
  1. Navigate to the intended placeholder.
    Select the management context from the context selection box, then select Content | Component Templates. Click the name or ID of the component template you want to edit to open the detail view, then scroll to the Placeholders section.
  2. Click the icon next to the placeholder to be deleted.
    This displays a confirmation dialog.
  3. Click OK to confirm the operation.
    The selected placeholder is removed from the current component template.
Note: Deleting a placeholder also deletes all content that is specifically assigned to the placeholder within components and component templates that are based on the current template.

Viewing Placeholders

If you are using shared component templates, you cannot edit outgoing placeholders. To view the placeholders of a shared template:
  1. Navigate to the intended placeholder.
    Select the management context from the context selection box, then select Content | Component Templates. Click the name or ID of the component template you want to edit to open the detail view, then scroll to the Placeholders section.
  2. Click the icon next to the placeholder to be viewed.
    This opens the placeholder details in read-only mode.

Sorting Outgoing Placeholders

You can define the sort order of placeholders exposed by a component template ("outgoing placeholders"). This sorting defines in which order the placeholders are displayed in components derived from this template. To sort outgoing placeholders:
  1. Navigate to the Outgoing Placeholders section.
    Select the management context from the context selection box, then select Content | Component Templates. Click the name or ID of the component template you want to edit to open the detail view, then scroll to the Outgoing Placeholders section.
  2. Use the arrow buttons to rearrange the placeholders.
    Your changes take effect immediately.