1) I have configured node_gallery using node_hierarchy to show child galleries as teasers in the gallery-images-list. This basically presents a grid of coverimages of which a couple link to childgalleries instead of images. This allows for very user-friendly organizing of galleries.

When adding body text to galleries the teasers show the bodytext next to the covers, whereas I want the body text of a gallery to only show up when viewing the image list of that particular gallery. I have gone through the template files of both node_gallery module and the 'node-node_gallery_gallery.tpl.php' page I created in my theme directory but I have not seen code that distinguishes between the coverimage and the bodytext. If I remove $content both disappear. Any ideas?

For now I have disabled the use of gallery body text but I really would want to use it.

2) If I (we) manage to get this done I would like to move a gallery's body text to the bottom of the page, beneath the teasers. I have not been able to find out how to do this.

Any help would be appreciated. :)

Comments

Rik’s picture

RedTop’s picture

Thanks Rik,

I will try to decrease the weight in order to move the description below the teasers. :)

Still looking for a way to remove description from the teasers without removing it from the galleries.

RedTop’s picture

For now I have found the following work-around:

The first thing I do when adding desciptions to galleries is to enter a teaser-break. No text will be shown in teaser-mode. :)

kmonty’s picture

Status: Active » Closed (fixed)

Sounds solved

RedTop’s picture

Status: Closed (fixed) » Active

Unfortunately the solution proposed by Rik didn't have the desired effect (none at all to be precise).

Right now imagelists are displayed as follows:

images
gallery description
teasers (child galleries' cover images)

I would like to display:

images
teasers (child galleries' cover images)
gallery description

RedTop’s picture

Version: 6.x-2.0-alpha11 » 6.x-2.x-dev
Status: Active » Fixed

I created a seperate template file (node-node_gallery_gallery.tpl.php) to override node.tpl.php

replace:

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

with:

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

  <?php //div added to prevent body from floating. used a clear: both statement in css ?>
  <div class="gallery-description">
   <?php print $node->content['body']['#value'] ?>
  </div>

  <?php print $node->content['pager']['#value'] ?>
 </div>

Did the trick. :)

I also found a better solution to prevent the bodytext from appearing next to the teaser cover. Override the default behaviour by placing a template in your theme directory:

node-view-nodehierarchy_children_teasers.tpl.php

<?php
/**
 * Removed everyting to make sure the galleries cover is the only thing that's being shown when in teaser mode.
 */
?>

<?php print $node->content['gallery']['#value'] ?>

The workaround I mentioned previously will no longer be needed.

RedTop’s picture

Assigned: Unassigned » RedTop
kmonty’s picture

Assigned: RedTop » Unassigned
Status: Fixed » Closed (fixed)