Adding content types

You've seen how to add web pages with a title and body but what if you want to add other types of content?

 

In Drupal 7, we provide you different content types like Events (with Calendar), News Announcements, People (for profile), Courses, Publications, Slideshow (of images), FTE based Voting, Appoinment Booking etc. We will continue to add many more so please contact your site admin or drupalsupport@sfsu.edu before you create a new content type.

 

There are two ways to add other content types. The first is to enable a module that already implements the content type you need. The second is to build your own content type. You must be an administrator to add additional content types.

 

First, let's try adding an existing content type.

 

 

  1. If Drupal 6: Go to Site building -> Modules -> List from the top menu.
    If Drupal 7: Go to Modules
  2. If Drupal 6: Expand the section Core - optional.
    If Drupal 7: Expand the section Core
  3. Check the box beside Blog.
  4. Click the Save configuration button.
  5. You will may a warning that "Some required modules must be enabled. Click the Continue button.
  6. Now try creating a blog entry.
  7. If Drupal 6: From the top menu Content management -> Create content -> Blog entry
    If Drupal 7: Go to Content -> Add Content -> Blog entry 
  8. You will see the entry when you go to <your_site>/blog.

 

The below is for Drupal 6. For Drupal 7, please contact your site admin or drupalsupport@sfsu.edu before you create a new content type.

 

If there isn't a module for the content type you need, you can create your own. In this example we'll create meeting notes that will include Meeting date time, Title, Attendees, and Notes.

  1. Go to Content management -> Content types -> Add content type in the top menu.
  2. In the Name field enter "Meeting Notes", Type field enter "meeting_notes", Description field enter "This content type is for enter meeting notes.".
  3. Click the Submission form setting link on the left hand menu. 
  4. In the Title field label field enter "Meeting Title", Body field enter "Notes".
  5. Click the Save content type button at the bottom of the page.
  6. You should now see a list of all content types with Meeting Notes lists as one of types.
  7. Click on the manage fields link next to Meeting Notes.
  8. At the bottom of the page, under New field, enter "Date and Time" in label, enter "meetingdatetime" in field name, select "Datetime" in Type of data to store, and select "Text Field with custom input format" in Form element to edit the data.
  9. Click the Save button.
  10. You can select a different input format but I am going to leave the defaults and click the Save field settings button at the bottom of the page.
  11. Add a second new field for "Attendees", field name "meetingattendees", type "Text", form element "Text area". Again you can accept the default settings.
  12. Now lets move the new field directly underneath the Title. Click on the cross that looks like 4 arrows next to the Date and Time field and drag it up under Meeting Title. Drag Attendees under Date and Time.
  13. Click the Save button.
  14. Now try creating a meeting notes. From the top menu Content management -> Create content -> Meeting Notes