Output galleries in custom node-template not using $content

espenmoe - April 18, 2009 - 17:35
Project:Imagefield Gallery
Version:5.x-2.0-alpha4
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

We need to output the gallery in a custom node-template, without using $content. We use two image-fields on the node. If we remove the secong image-field and downgrade to version 5.x 1.4, this code works fine:

<?php
print theme('imagefield_gallery_lightbox2', $node->field_fieldname, $node);
?>

But what is the correct syntax in 5.x-2.0-alpha4??

I noticed the name of the gallery-module changed from 'imagefield_gallery_lightbox2' to 'lightbox2_imagefield_gallery'

Altering the code to the new name of the module

<?php
print theme('lightbox2_imagefield_gallery', $node->field_fieldname, $node);
?>

Gives me this error:
warning: Missing argument 3 for theme_lightbox2_imagefield_gallery() in C:\drupal\journalisten.no\trunk\drupal5\sites\all\modules\imagefield_gallery\lightbox2_imagefield_gallery\lightbox2_imagefield_gallery.module on line 366.

I would really love some help :-)

espenmoe
Oslo, Norway

 
 

Drupal is a registered trademark of Dries Buytaert.