Creating Components from Component Types

You create a component by adding a component type to a content slot.

Context

You create a component by adding a component type to a content slot. When you add the component type, the Component Editor appears for you to define the properties of the component. The properties that you can define depend on the component type the component is based on. Once you’ve created a component, it appears in the Saved Components tab of the Add Components panel and is available for you and other users to add to other pages of your catalog.

When you create a component, you specify the properties of the component in the Component Editor. It consists of the following three (3) tabs:

  • Content: Allows you to specify the name and the content of the component. What you can specify here depends on the component type that the component is based on. For example, when creating a Paragraph component, you can specify text or HTML code, when creating a simple banner component, you can specify the image to be shown and an external or internal URL, etc.
  • Basic Info: Displays the ID of the component, as well as date and time the component was created and last modified.
  • Visibility: Allows you to change the visibility of a component and assign restrictions to it, as follows:
    • Display Component setting allows you to hide visible components and make hidden components visible. Note that you can only make hidden components visible if you are in Advanced Edit mode.
    • Restrictions editor allows you to add, edit, and remove restrictions. Note that if visibility is set to OFF, restrictions don't apply.

Procedure

  1. Select Basic Edit or Advanced Edit from the Modes Selector.

    The current page appears in the selected mode.

  2. Click Component .

    SmartEdit displays the Component Types tab of the Add Component panel.

  3. Click on the desired component type, drag it to the target location, and drop it.

    When you drop the component type into the content slot, the Component Editor is displayed showing the Content tab.

  4. Specify the name of the component.
  5. Continue to specify the properties in the Content tab.

    The content of the Content tab varies depending on the component type that the component is based on. For information on the content that you must specify for your component, see the documentation that describes the component type that it’s based on:

  6. Click the Visibility tab to specify the display condition or to add restrictions to the component it.
  7. Optionally, set the Display Component setting.

    The Display Component setting controls if a component is displayed in a page. When Display Component is set to off, restrictions added to the page don’t apply, that is, they’re automatically disabled.

  8. Click Create to add a restriction to the component.

    SmartEdit displays the Add Restriction window.

  9. Specify the properties of the restriction and click Add.

    For more information about adding restrictions, see Adding Restrictions to Components.

    Continue to add restrictions as you want.

  10. If you’ve added more than one restriction to the component, you must specify the condition under which the component is displayed:
    • Apply All: The component is displayed only when all the component's restriction conditions are met.
    • Apply Any: The component is displayed when any of the component's restriction conditions are met.
  11. Once you’ve specified all the properties of your component, click Save.
    The new component appears as defined in the content slot. The component is now available in the Saved Components tab of the Add Component panel.