This patch provides an additional theme function for the placement of the image list in relation to the body of the node.

From the end-user's perspective, the patch does not change the way the module works by default. The designer, however, now has the ability to place the image list above the body, or even not in the body at all (maybe they want the pictures to appear in a block instead).

For me, this modification has allowed a "gallery" type of theming for product pages, as discussed in http://drupal.org/node/79120 .

This is a great module!

Comments

drewish’s picture

that seems like an excellent change. i'll try to get this committed soon.

killes@www.drop.org’s picture

drewish: please do

mlncn’s picture

Would this include the possibility of including the (a) thumbnail in the teaser? If not... any quick pointers on how one might going about doing that? For the Amazing Things Arts Center on-line auction, coming soon to http://zingspace.org/auction/

Great module, a major help. Looking forward to the theming aids.

- ben melançon
http://AgaricDesign.com

coreyp_1’s picture

No, this patch does not allow for adding a picture to the teaser, but that can be done other ways.

You could write it into the theme, using the appropriate theming functions and templates (I don't know a lot about this).

You could write a module that makes use of the hook_nodeapi() function, and modify the teaser from there. Since I am a programmer, I will probably use this approach. For inspiration, you can examine the code of this module, since it uses the hook_nodeapi() function as well (to add the thumbnails to the body, that is).

drewish’s picture

Status: Needs review » Fixed

I've applied the current patch to 4.7 and HEAD.

coreyp_1, I'd be very interested in any theming improvments you come up with, especially putting the image into the teaser.

coreyp_1’s picture

StatusFileSize
new11.09 KB

drewish: Thanks for the commit! This is my first patch to make it into an official project! ;oD

I hesitate to post this next file. It is the module I am using to do all of my "gallery" stuff. It is by no means perfect, and meant to be used with other theming devices. This will let you see how I put a picture into the teaser, though.

I need to work on the CSS part...

- Corey

coreyp_1’s picture

StatusFileSize
new323 bytes

CSS file for the module listed above

Anonymous’s picture

Status: Fixed » Closed (fixed)
whereisian’s picture

Version: » 4.7.x-1.x-dev
Category: feature » support
Status: Closed (fixed) » Active

This module has been godsent for me, but I'm very new to theming and am having some problems calling the correct function in my customnode.tpl.php file. How does one display the thumbnails? I've been playing around with statements similar to this thread: http://drupal.org/node/78767 but havn't had any luck.

killes@www.drop.org’s picture

Category: support » feature
Status: Active » Closed (fixed)

please don't re-open closed issues. Open a new one.