Creating a content type

  1. In Content type (singular) enter the singular name of the content items that the module will store.
    For example, the singular name of the content type of the Events module is Event. For the FAQ module, you can enter, Question.
  2. You can change the automatically generated name that is used to refer to the content type in the code.
    To change it, enter the new name.
  3. If you want to create a hierarchical module, select the parent of the content type you are creating in the Parent content type dropdown box.
    For example, Blogs are parent content type of Blog posts.

    NOTE: When you are creating the first content type, you cannot choose a parent for it.

  4. Add the fields of the content type by clicking Add a field… button and performing procedure Creating a new custom field » Step 4 to Step 13.
    For example, in the FAQ module, the content items can have a short text field Question, a long text field Answer, and you can also classify the questions, using categories.

    NOTE: You must create at least one field that is short text and required.

    NOTE: If you have chosen to add Choices field, such as radio buttons or multiple choice, you must enter a value for each choice you create. The value must be unique of each choice. It is not visible by users in the interface. Keep values as short as possible. You can enter, for example, 1, 2, and 3. These numbers are used by developers to refer the choice in the code.

    NOTE: If you are using multiple backend or frontend languages, you can automatically display the label in the respective language. This is valid for choice fields, such as radio buttons, dropdown boxes, and multiple choices. This way the choices of a radio button are displayed in the respective language automatically. To do this, create a new label using procedure Creating a new label. Remember the Key and the Type of the label. Then when you enter a choice, in the input field, enter the following: Resources:<Type of resource> <Key of resource>.

  5. In Which field is the identifier of the content? dropdown box, select which field will be used to represent the content item and to generate its URL.
    You can select only a short text field that is marked as required.

    For example, if you have entered a frequently asked question How to install a module, then in the list of content items this question will be listed as How to install a module and its URL will be how-to-install-a-module.

  6. To be able to set individual permissions for each field of the content type, expand Advanced and select Allow permissions per field checkbox.
    For example, some users can change the answer to an FAQ, others can only view it, but can create questions.
  7. Click Finish.
    The module is defined, but it is not yet created and it cannot be used until you activate it.
  8. To activate the module immediately, click Activate this module.

    The module is created and activated. It appears in the list of modules in status Active. The module appears under the Content tab together with all top level content types and the respective widgets are created and appear in the Content widget group.

    You can go back to all modules and activate the module later by clicking Actions » Activate. When not activate, the module appears in the list with all modules in status Inactive.

    NOTE: When you activate a module, you can deactivate it or delete it.

  9. To create more content types, click Add a content type and perform Step 1 to Step 7.

    NOTE: If you create a content type that is a child of another content type, you must update the widget of the parent content type to reflect the hierarchy. To do that on the module’s page, click the parent content type and then click Update widget templates and finish. Then, you must remove the parent widget from all the pages that it has been used and add it again.

NOTE: Once created, you cannot delete a content type, you can only delete the entire module.

Next steps

+1-888-365-2779
sales@sitefinity.com

Related topics:

Feedback

How useful is this article?

Tell us more

Submit
Your message was successfully sent.

We appreciate your feedback.

Your message could not be sent.

OK