Search code examples
drupaldrupal-6teaser

How to get a field's teaser with php?


Is there a way to get a field's teaser value with php? I can get the fields value with some php like this..

<?php print $node->field_country[0]['value'] ?>

I tried this..

<?php print $node->field_country[0]['teaser'] ?>

But that does not work. :(


Solution

  • Have you tried

    <?php print $node->field_country['und'][0]['value'] ?>
    

    This could work.

    If it didn't, use

    <?php print_r($node->field_country); ?>
    

    to go through the properties of the field.