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.
I tried
<?php
$images = $node->field_photos;
print theme_lightbox2_imagefield_gallery($images , $node->nid, "page_field_photos");
?>
But the paths to the images are wrong. Besides it does not allow the admin to change the gallery type from the admin pages. What function is called by default when Drupal renders a non-templated page?
Thanks.
Comments
Comment #1
keyo CreditAttribution: keyo commented<?php print $node->content['field_name']['#values'];
Comment #2
pizangdesain CreditAttribution: pizangdesain commentedi've try this way but it's not work for me, i try
print $node->content['field_name']['view'];
andprint $node->content['field_name']['#children'];
to show thumbnail image.anybody can tell me how to print imagefield value for thumbnail and preview imagecache?