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

joachim’s picture

If 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.

cholden’s picture

I'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..

joachim’s picture

It'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.

cholden’s picture

Oh. 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..

joachim’s picture

Status: Active » Closed (fixed)

Node 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 :)