Hi,

I'm testing node_gallery and tried to fill one such node with some pictures and text. But the text is placed below all the pictures where it is virtually invisible if the gallery has more than say 7 pictures. Is there a way to configure Gallery nodes to have their text content placed at the top of the page above the pictures?

Thanks

Comments

Rik’s picture

charmer’s picture

Category: support » feature

I figured that "hacking" the code would always be an option but I'm using package manager to automatically update my modules and if possible, I'd rather maintain less module-specific patches than more.

So I'm turning this issue into a feature request. Honestly, I'd even expect the text appearing above the the pictures as a default option, what's the point having it all the way down?

Thanks again.

AlexanderPop’s picture

So is it possible to do without hacking module?

dbeall’s picture

@AlexanderPop, I don't think you can do it without changing the weight in the node_gallery.module
639220: How to move description above the gallery? (#1)

RedTop’s picture

This is easily done on the theme level, you've just got to break up $content into it's various parts:

copy node.tpl.php to your theme's templates directory and rename it to node-node_gallery_gallery.tpl.php

In the template replace

  <div class="content">
    <?php print $content; ?>
  </div>

with something like:

  <div class="content">
  <?php print $node->content['body']['#value'] ?>
  <?php print $node->content['gallery']['#value'] ?>
  <?php print $node->content['pager']['#value'] ?>
  </div>

I'm not sure whether this is entirely accurate but it should point you in the right direction. :)

See:
http://drupal.org/node/509234#comment-2404728

justintime’s picture

Category: feature » support
Status: Active » Fixed

RedTop's right, theming is exactly how to go about this. Closing due to inactivity.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

parasox’s picture

Using the DisplaySuite module and Node Gallery 3.x, you can now easily move your description above the images, and display any other custom fields too.

See: http://drupal.org/node/786136#comment-3763340