Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi all,
I am a bit confused using this module.
I create a story and add one picture using CCK ImageField. The default output is shown in my attachment.
Now what if I want to have the image and then the body text?
When I try to edit the Contemplate I get the following:
<div class="field field-type-filefield field-field-story-image">
<h3 class="field-label">Image</h3>
<div class="field-items">
<div class="field-item"><?php print $node->field_story_image[0]['view'] ?></div>
</div>
</div>
What I don't see is my body field. So how do I choose for body to go after image?
Thanks...
Comment | File | Size | Author |
---|---|---|---|
screenshot.png | 277.56 KB | ratinakage |
Comments
Comment #1
Mproject CreditAttribution: Mproject commentedBelow the Body (or Teaser) field you have "Body Variables". In tehre there is a list of all available outputs like:
$node->title
$node->content['body']['#value']
etc...
find what you want and place it in php print (or echo) tags