Closed (fixed)
Project:
CCK Gallery
Version:
6.x-1.x-dev
Component:
Documentation
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
23 Jun 2009 at 10:32 UTC
Updated:
14 Apr 2011 at 10:51 UTC
Posted in new issue from: #370320: Have separate gallery views for the gallery and image templates
Hi. For a project I'm working on, I needed to implement the Previous and Next thumbnails in a block, to gain more layout flexibility.
So it adds an additional block called "Gallery NextPrev".
I wrapped the Next/Prev thumbnail creation code into a new function, and use it for the block and the template variables, so they can still be used on node content if needed.This is a start, and have to be improved, like markup output, code duplicate...
I added a few css classes for styling.Hope it helps.
| Comment | File | Size | Author |
|---|---|---|---|
| cck_gallery.diff | 5.77 KB | greg.harvey |
Comments
Comment #1
denes.szabo commentedI just have tried the cck gallery. I succesfully added a pager to the cck_image page with the custom pagers module (http://drupal.org/node/262854)
Steps:
1; install the custom pagers module
2; add a new custom pager with this params:
pager title, pager position: as you want
Pager visibility - CCK_Image
Use a view: gallery_content
View arguments: [field_gallery-nid]
This works to me. But I just made it and it needs more testing.
Comment #2
greg.harveyThanks for posting. Let us know how it works out! If it's a solid solution, I'll add it to the documentation.
Comment #3
denes.szabo commentedIt seems to work. I have just added a few images and tested it. Need a little theme work but the function is ok.
This multiple image upload method is working too: http://drupal.org/node/398676
THX for this module. I like it!
Comment #4
greg.harveyWelcome. Will work on a README for how other contrib can bolt on to CCK Gallery to achieve different effects. =)
Comment #5
greg.harveyModule is obsolete, won't bother to do a README, but will apply this patch to -dev and role one final release at some point.
Comment #6
greg.harveyCommitted.