11.3 Creating two new content types with additional fields
Create in Administer – Content management – Content types – Add content type two new content types: the content type site and the content type vehicles (illustration 3). Follow the instructions explained for press releases (see section 5.5.2: Create a new content type for press releases):

Illustration 3: New content types vehicle and site
For the time being, a specification for the title (place) and description (driving directions) of the content type site is enough.
The content type vehicle needs more fields, a field for two images, a field for the price and a field, which refers to the site. Therefore, click on the link edit (illustration 4) next to the content type vehicle.

Illustration 4: Adding a field with CCK

Illustration 5: zusätzliche Felder im Fahrzeugtyp
The image of the vehicle is an IMCE Image- field for any desired number image of the vehicle of images. You need to enter the desired amount in the form field number of values. I choose four values, as I want to put up maximal four images. This setting exists in many fields, that allow multiple values. With some values it is possible to request additional fields by clicking on a button during the entry. Here, using the IMCE Image field, you need to decide on a fixed number of images.
The price in EUR is a decimal number (Decimal). Choose Text field from the listed options as a widget type (form element).
The site is a node reference. As a widget type I choose a select list. The field shall later contain a select list of all sites. Here you must make certain to check the content type in the bottom area of the form, from which the selection should result (sites).
- Add new comment
- 7554 reads
- Deutsch






IMCE Image
Hi,
I cannot find the IMCE Image field type. Is it not present in v6.X?
IMCE Image
Yes, You have to install the IMCE field for finding this type.