Closed (fixed)
Project:
Image
Version:
6.x-1.0-beta3
Component:
image_gallery
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
16 Nov 2009 at 10:39 UTC
Updated:
17 Nov 2009 at 15:36 UTC
Hi,
When you add a new Gallery you are able to type in a description of the gallery. How do I display this description above the gallery in the node?
I've been searching these issues and google - but cant find the solution.
Thanks.
Comments
Comment #1
joachim commentedIf you're using views then that text is available to you.
I don't know what you mean by 'above the gallery in the node' -- so maybe not in the circumstance it sounds like you want it.
Comment #2
cholden commentedI've been trying to find the description-text in views but cant.. could you tell me how?
And by 'above the gallery in the node' I mean that I want to place the description-text above the thumbnails/gallery..
Comment #3
joachim commentedIt'll be in the taxonomy term view. But you want it in the node view, describing the current gallery.
You need to do some theming code and load the vocabulary yourself.
It might be you can get from nodes to taxonomy term with a relationship, but I don't remember. You'd still need theming, as the term would get pulled in for every node.
Comment #4
cholden commentedOh. Sounds like it beyond my skills.
I haven't really understood how views works yet and have never tried to theme something like that before.
Could you provide a link to a documentation about theme such things?
I found a module called Node Gallery and a guide how to customize it.. Do you think that could solve my problem?
http://drupal.org/node/544748
About views i probably just have to play around trying to understand how things works..
Comment #5
joachim commentedNode Gallery might be better suited to what you need.
IIRC the Views project page links to docs about theming Views.
Though it strikes me that would could also do it with PHP code in the view header text. Get the taxonomy vocab ID from the view arguments, and then use the taxonomy module API to load that vocab, then print the description.
You could also try asking on the forums or IRC. If you do figure this out, feel free to add something about it to the Image module documentation pages :)