Documentation Center

Creating Content Manager items

Schemas, Component Templates, and Components are the Tridion representations of elements that appear on your Web site Pages. Create these Content Manager Items to enable Editors to manage the Web site element from within the Content Manager.

Procedure

  1. Create a Schema to represent your Web site element:
    1. In the General tab, enter:
      • NameSpecial Offer
      • DescriptionSpecial Offer
      • Schema TypeSchema
      • Root Element NameSpecialOffer
    2. In the Design tab, add the following fields:
      • headline type Text
      • image type Multimedia Link
      • description type Text
      • link type Component Link
    3. In the Metadata tab, add the following fields:
      • expiryDate type Date
  2. Create a Component Template based on this Schema:
    1. In the Editor Folder of your work area, create a new Component Template called Special Offer. You can do this by copying an existing Component Template or creating a new one in Template Builder.
    2. In Template Builder, add the Render Component Content and Default Component Template Finish Actions Template Building Blocks from the set of Core Template Building Blocks.
    3. Open the Component Template in the Content Explorer and go the Linked Schemas tab.
    4. Remove any Schemas if you created the template by copying another and add the Special Offer Schema.
    5. Save and Close.
  3. Add MVC metadata to the Component Template:
    Add metadata to the template so that the Web application understands the relationship between Content Manager Templates and Web application Views.
    1. Open the MVC Metadata Schema in the Metadata Schema dropdown.
    2. In the General tab, enter an Entity View Name which matches the Area and View names that you created previously. For example:
  4. Refresh the Web application settings:
    1. Go to the Home/_System Structure Group.
    2. Select the Publish Settings Page and click Publishing > Publish.
    3. Go to your Web application and enter the URL /admin/refresh refresh the cache and reload the settings in the Web application.
  5. Create example content:
    1. Create Components that use the Special Offer Schema.
    2. Add the Components to a Page.
    3. Publish the Page.
    Browse to the Page in your staging Web site to ee your example content rendered with the new View.