Hi, all
I’m trying to create a gallery, but need to change the php code a little for it to work. Ive done java programming 5 years ago so Im a little out of practice! But not much php.
I need to change the name (gallery is your content type machine name) when I looked in drupal its called field_image_gallery but where do I change this in the code below?
[php]
<a href="<?php print file_create_url($node->field_img['und'][$i]['uri']); ?>" rel="group-<?php print $node->nid; ?>" class="fancybox">
<img class="image<?php print ($i + 1);?>" src="<?php print $masthead_raw; ?>" />
</a>
<?php } ?>