| 1 |
$Id: README.txt,v 1.1 2004/10/13 13:01:37 uwe Exp $
|
| 2 |
|
| 3 |
Flexinode is a module that allows non-programmers to create new node
|
| 4 |
types (flexible content types) in Drupal when their needs are modest.
|
| 5 |
Users can define the fields in the node edit form for their content type,
|
| 6 |
and can either view the nodes as presented by the module or modify the
|
| 7 |
presentation in their theme.
|
| 8 |
|
| 9 |
|
| 10 |
Installation
|
| 11 |
|
| 12 |
Import the database tables and enable the module. See the INSTALL file.
|
| 13 |
|
| 14 |
|
| 15 |
Editing Content Types
|
| 16 |
|
| 17 |
The administration pages for this module are located at:
|
| 18 |
Administration -> Content Management, on the Content Types tab
|
| 19 |
Click on the "add content type" tab to make a new one. On this page you can set
|
| 20 |
the title of your new content type and some related information.
|
| 21 |
|
| 22 |
Once you save your new type, you can add new custom fields to it using
|
| 23 |
the links on the overview page. You can add a variety of fields.
|
| 24 |
The Title and Description fields are always shown.
|
| 25 |
|
| 26 |
|
| 27 |
Viewing Content
|
| 28 |
|
| 29 |
Adding flexible content is just like adding other nodes; pick the
|
| 30 |
appropriate link from the user menu. The node will show up alongside
|
| 31 |
all normal nodes.
|
| 32 |
|
| 33 |
|
| 34 |
Theming Content
|
| 35 |
|
| 36 |
Every custom field is set as a property of the node. To create a custom
|
| 37 |
presentation for your new content type, add logic in your theme's node
|
| 38 |
function to switch on the node type and print out the fields in the
|
| 39 |
way you choose. The fields are all named flexinode_n where n is the
|
| 40 |
field ID.
|
| 41 |
|
| 42 |
Alternately, you can override the theme_flexinode_* functions to change
|
| 43 |
the look of all fields of a certain type.
|