Content types
Drupal Contenttypes
The most important way that Drupal helps you manage content is with content types. Different types of content require different features (= fields).
"a Content Type is a pre-defined collection of data types (Fields) which relate to each other by an informational context."
Default contenttypes and contenttypes you make yourself
Follow on sandbox.onlinepublishing.ulyssis.be
- admin toolbar: Structure > Content Types
- default content types: Article and Page
- dynamic info (like 'news')
- static info ('about')
- Article
- edit
- manage fields (= form components)
- body, comments, image, tags
- text format (full html)
- add field
- manage form display (= display to the editor)
- weight | region | widget
- add field group (example: pedalion)
- manage display (= display to the audience)
- label
- image style
Build your own content type(s)
-
Why a custom contenttype?
- default types not specific enough (lack fields)
- in function of views
- option: add fields to default content types
-
Field types
-
Examples:
- mdrn: front slide, person, publication
- pedalion: paragraaf
- Hidden Corners: Location Type
- Call for open calls: Open Call
-
Let's create a content type 'quote'
- fields: quote text, author, source, read on, category