Define new content types

Last modified: April 30, 2009 - 16:41

First, go to admin/content/types/add and create a node type for the image gallery with type “image_gallery” (or any other system name, as you like). In the section “BookMadeSimple” only check “Auto create book main page”.

Second, create a node type for images with type “image” (or any other system name, as you like). In the section “BookMadeSimple” only check “Select content-types as parent: image gallery”. Thus you have connected your images with the image gallery.

But now, we have to define a field for the image itself. Go to “manage fields” and create a new field (field_)”image” (or any other name you like) of type “file” with form element “image”. Then, on the configuration page of the new field, enter the desired configuration parameters (e.g. Permitted upload file extensions: “jpg jpeg png gif”). Check “Required” in the section “Global settings”, number of values: “1”, List field: “disabled”. After saving your changes, configure the display of the field Label: “<hidden>”, teaser view as “small image linked to node”, and full view as “large image”. The available choices depend on your image cache settings.

Save your changes.

 
 

Drupal is a registered trademark of Dries Buytaert.