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
Comment #1
Rik commentedCheck this issue: http://drupal.org/node/639220
Comment #2
RedTop commentedThanks 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.
Comment #3
RedTop commentedFor 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. :)
Comment #4
kmontySounds solved
Comment #5
RedTop commentedUnfortunately 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
Comment #6
RedTop commentedI created a seperate template file (node-node_gallery_gallery.tpl.php) to override node.tpl.php
replace:
with:
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
The workaround I mentioned previously will no longer be needed.
Comment #7
RedTop commentedComment #8
kmonty