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!
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | pgallery.css.txt | 323 bytes | coreyp_1 |
| #6 | pgallery.module | 11.09 KB | coreyp_1 |
| upload_image.module.patch01 | 634 bytes | coreyp_1 |
Comments
Comment #1
drewish commentedthat seems like an excellent change. i'll try to get this committed soon.
Comment #2
killes@www.drop.org commenteddrewish: please do
Comment #3
mlncn commentedWould 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
Comment #4
coreyp_1 commentedNo, 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).Comment #5
drewish commentedI'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.
Comment #6
coreyp_1 commenteddrewish: 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
Comment #7
coreyp_1 commentedCSS file for the module listed above
Comment #8
(not verified) commentedComment #9
whereisian commentedThis 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.
Comment #10
killes@www.drop.org commentedplease don't re-open closed issues. Open a new one.