Hello,
I want to create a recipe website and I have the following issue with fields.
I want to create Directions for a recipe page like this: Fresh Fruit Bruschetta with Orange-Honey Cream
Example :
DIRECTIONS
1. Slice bread into 1/2 inch slices. Place in a single layer on a foil-lined baking sheet.
|
| IMAGE
|_____________
2. Use a pastry brush to brush each piece with melted butter.
|
| IMAGE
|_____________
ADD ANOTHER DIRECTION
Question :
How can I achieve this?
... I know I need a " Long text FIELD " and an " IMAGE Field " but how do I group them together ? (fieldgroup module is not relevant in this example)
Basically is a FIELD in FIELD, and the second FIELD (image) is optional. Unlimited directions can also be created.
Thank you for your further help with this.
Comments
one way to do this
You could add an image by using full or filtered html in the field.
You then hand code the image tag or you can add a WYSIWYG html editor module for the coding.
This may not be the definitive way, but it works.
I solved a lot of self-inflicted issues by opening the fields to html and adding the WYSIWYG editor - your mileage may vary.
Field Collection module
What you may want to consider is http://drupal.org/project/field_collection
This allows you to add fields in groups or sets of multiple related fields. Each time you add another group, you can add another grouping of the fields (e.g. a text field and associated image field).
You should also include this module http://drupal.org/project/subform to ensure you can add the fields during initial creation of the node.
Here's a video demonstration / lesson: http://blip.tv/ladrupal/field-collection-5743625
Thank you very much Keyz.
Thank you very much Keyz. That did the trick!
I will also check the subform module.
Cheers