Working With Content Types in Drupal
Return to Drupal Cloud Landing Page
On this page:
What is a Content Type?
Websites contain many different types of information. Each individual set of information is called a node. Sometimes a node is a full page and sometimes it's content which may be placed in a block, e.g., a blog entry. A Content Type is a set of fields for a particular type of data. For example, the simplest content type is a Basic page. A Basic page has two fields - a field for the Title and second field for the Body into which the content is placed. The title and body fields display information to the user. In addition to the fields, certain settings are also associated with a content type, like publishing options, page comment options and options for which menu will display this content type. You can add new content types to meet your needs. For example, suppose you were planning a meeting or conference for which people had to register. You would need to collect certain basic data about each attendee. To do so, you might create a content type with fields to capture, store and display contact information, payment information, session information, housing information, etc. Drupal Cloud comes with several content types which are explained in the next section. Any content type may be edited by adding, deleting or modifying fields or options. |
Default Content Types
There are seven basic content types available to use. Each content type has a different set of fields for storing and displaying information.
Content Type | Description |
Basic page | Use basic pages for your static content, such as an 'About us' page. |
Biblio | Use Biblio for scholarly content, such as journal papers and books. |
Blog | Use to create a blog entry. |
Feed | Use to subscribe to RSS or Atom feeds. Creates nodes of the content type "Feed item" from feed content. |
Feed item | This content type is being used for automatically aggregating content from feeds. |
News | Use to create or reference relevant news stories here. |
Webform | Use to create a new form accessible to users. Submission results and statistics are recorded. |
Creating a New Content Type
- From the Admin menu click Structure, then choose Content types.
- Click Add content type.
- Add a name and description (optional) and set any options for this content type.
- Click Save and add fields.
- Add new fields you will need to the list of existing fields and click Save.
For complete information about Creating Content Types watch section 9, Extending Content in the LinkedIn Learning video Drupal 7 Essential Training. Here are Video chapters you will find useful.
- Adding fields to content types
- Exploring field types and options
- Adjusting field display.
Assigning Permissions for the New Content Type
When you create a new content type you will need to specify who can use it by setting permissions.
- From the Admin menu click People then click Permissions.
- Scroll to the Nodes section and locate the rows for the content type.
- Check the boxes for the new content type’s rows to add permissions. The Content Manager role is assigned permissions by default.
- Click Save permissions.
WARNING: Do not assign permissions for content creation and editing to ANONYMOUS USER.
For more information on permissions, see the KB article Assigning Roles and Permissions.
Editing a Content Type
- From the Admin menu click Structure, then choose Content types.
- Click Edit for the content type you wish to edit.
- On the Edit tab, make changes to the name, description or options for this content type.
- Additional tabs allow you to add or edit fields, change display options and content options.
- Click Save content type.