Community Documentation

Define new content types

Last updated April 30, 2009. Created by wbue on April 30, 2009.
Log in to edit this page.

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.

Page status

No known problems

Log in to edit this page

About this page

Drupal version
Drupal 6.x
Audience
Site administrators

Site Building Guide

Drupal’s online documentation is © 2000-2012 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License.