Closed (fixed)
Project:
Node Gallery
Version:
6.x-2.0-alpha11
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
21 Nov 2009 at 17:12 UTC
Updated:
25 Jan 2011 at 23:24 UTC
Oi,
How do I move the gallery-description above the gallery (default it's placed underneath the gallery/thumbnails). I've been trying to find the right .tpl file, but cant see anything about the description.
Thanks.
Comments
Comment #1
Rik commentedHi cholden,
I only managed to fix this in the node_gallery.module file which is a bad location even if you would only lost this setting when updating the module. The different node content fields are displayed in order by weight. These values are fixed for this module file. It also can not be fixed with css because the description field does not have a unique identifier.
I'd would expect this to be set in the content type maintainance section under "Display fields" but it is not, perhaps a developer can say something about this?
Anyway to get around this you can edit node_gallery.module and look for the line (if you're using the latest version)
change the weight to something like 20 and the description will appear on top of the images. Remember this when updating the module because this will get lost.
Comment #2
cholden commentedHi Rik,
Thanks for your reply.
I found the line and changes the current weight of -3 to 20 but there are no changes.
I tried changing the line here instead - from -3 to 20, which worked.
$node->content['gallery'] = array('#value' => theme('gallery_teaser', $node, $config), '#weight' => -3);Thanks for giving me a hint :)
Problem solved!
Comment #4
AlexanderPop commentedhttp://drupal.org/node/659192#comment-2776744
Comment #5
mattyoung commentedinstead of hacking node_gallery itself, I use the following code to modify the weight value:
You can change the gallery weight value to anything you want relative to other field.
Comment #6
justintime commentedNow *that* is cool. I didn't know about #pre_render. Thanks for the tip!