A Recipe for a Rapid Drupal Site--Part III, Setting Up Content Types
The next step in setting up your site, is to create content types over and above any "out of the box" content types like blogs, pages, and forums. On TraumaAdoption we created:
- Book Reviews
- Offsite Resources
- Public Adoption Services
as custom content types using Content Construction Kit (CCK). The process is of creating a new content type is quite simple.
-
Document what fields you are going to want to collect. In the case of the Public Adoption Services type I needed:
- Title
- Body
- Address 1
- Address 2
- City
- State/Province
- ZIP/Post Code
- Phone
- URL
- Go to: /admin/content/types and click on the "Add Content Type" tab
- Give your content type a name, type, and description
- If you un-collapse "Submission form settings" you'll see that you can change the Title and Body titles and you don't need to create those fields in building your content type.
- Set your comment settings
- Under workflow settings you can decide if you want your content to publish to the front page, if it defaults to be published, if it will be sticky, and if you are going to create a new revision.
- Click on Save content type
- Back on the content type overview page, click on "manage fields" on your new content type.
- Add fields that match the fields you need. In TraumaAdoption's case, that meant adding Address fields, City, State/Province, ZIP/Post Code, Phone and URL. Make sure that you select a field type and widget that fits your field's needs (select box, radio button, text field and so forth).
- Click "Save" at the bottom of the page.
You now how your new content type. Repeat this process for each content type you need.
The next installment will cover creating Views for your content types to create pages and menu items for those pages. Views can also create blocks, so we'll look at how to make blocks and place them where your placeholders exist right now.








Recent comments
6 days 23 hours ago
1 week 1 day ago
1 week 1 day ago
2 weeks 10 hours ago
2 weeks 1 day ago
2 weeks 2 days ago
2 weeks 2 days ago
2 weeks 2 days ago
2 weeks 2 days ago
2 weeks 2 days ago