Closed (fixed)
Project:
Node Gallery
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
18 Mar 2011 at 09:05 UTC
Updated:
26 May 2012 at 23:20 UTC
How to get taxonomy term to show under each image, which is already defined in each Album. I no need to add the same taxonomy under each picture.
I added some code in tpl file but it give me not what I need
<?php print $content; ?>
<div class="node node-type-node-gallery-gallery">
<div class="field field-type-text field-field-author-name">
<? // print_r ($node->taxonomy);
//foreach ($node->taxonomy as $term)
// {
// print $term->name . " ";
// }
?>
<div class="field-label">
<div class="field-items">
<div class="field-item odd">
<? // print_r ($node->taxonomy);
//foreach ($node->taxonomy as $term)
// {
// print $term->name . " ";
// }
?> </div>
Comments
Comment #1
scroogie commentedThat could would only work if the image itself would be added to the taxonomy.
If you want to use the taxonomy of the gallery, you will have to retrieve the gallery node first:
Then you can use
or whatever you want to do.
Comment #2
justintime commentedOr you could use Node Gallery Taxonomy to keep things in sync between the gallery and the image.
Comment #3
zengenuity commentedCorrect link to Node Gallery Taxonomy.
Comment #4
zengenuity commented