Hi, thanks for the great module!
I was looking for a way to get more complex information shown in the image description div, not just one field that can be assigned in views. So I came up with this solution: to assign the Node->nid field in views as image description, and change the code inside the image-desc div in views-gallerific-view-gallerificrow.tpl.php to
$teaser = TRUE;
$page = FALSE;
$nid = $fields['description_field']->content;
$node = node_build_content(node_load(array('nid' => $nid)), $teaser, $page);
$node->teaser = drupal_render($node->content);
print $node->teaser;
this way the teaser is being printed instead of just one field, and you have more control over the content and design.
I hope, someone finds it useful, and if there is a better way to display more complex image description please tell me.
Comments
Comment #1
acouch commentedThanks for using the module.
I'm not sure I understand what you are trying to accomplish here.
In Views you are able to assign any content as the description field which includes the node teaser. Just click 'Row Style' and select Galleriffic Fields and you can put any content including node teaser into the description field (see attached image).
Does this satisfy what you are trying to accomplish?
Comment #2
spython commentedThat was of course the first thing I tried, yet somehow it was displaying just the "body" field, without any additional fields that I configured, and that should have been displayed according to the "display fields" configuration page in cck.
Edit: just checked it with the garland theme, it's still displaying only the body field if I select node:teaser as description field..
Comment #3
acouch commentedThis should work with the new version. Please reopen if not.