Zum Inhalt springen

Drupal 7 fields: Unterschied zwischen den Versionen

Aus Computech CMS Wiki
Simon Zeberli (Diskussion | Beiträge)
Keine Bearbeitungszusammenfassung
Simon Zeberli (Diskussion | Beiträge)
Keine Bearbeitungszusammenfassung
Zeile 24: Zeile 24:
         <?php
         <?php
         $my_image = array(
         $my_image = array(
               'style_name' => '120', //the image style created
               'style_name' => 'thumbnail', //the image style created
                 'path' => $node->field_flyin_portrait['und'][0]['uri'],
                 'path' => $node->field_flyin_portrait['und'][0]['uri'],
               );
               );
         print theme('image_style', $my_image); ?>
         print theme('image_style', $my_image); ?>

Version vom 12. November 2012, 17:56 Uhr

Content

  <?php
               hide($content['title']);
               hide($content);      
  ?>

Caption

  <?php
  print render($content['field_news_caption1']); 
  ?>

Field

  <?php
  print render($content['field_address1']); 
  ?>

Title

  <?php
  print render($content['title']); 
  ?>

Body

  <?php
  print render($content['body']); 
  ?>

Images

        <?php
        $my_image = array(
             'style_name' => 'thumbnail', //the image style created
               'path' => $node->field_flyin_portrait['und'][0]['uri'],
             );
       print theme('image_style', $my_image); ?>