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.

CommentFileSizeAuthor
cck_gallery.diff5.77 KBgreg.harvey
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Denes.Szabo’s picture

I 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.

greg.harvey’s picture

Component: Code » Documentation
Category: feature » task
Status: Needs review » Active

Thanks for posting. Let us know how it works out! If it's a solid solution, I'll add it to the documentation.

Denes.Szabo’s picture

It 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!

greg.harvey’s picture

Welcome. Will work on a README for how other contrib can bolt on to CCK Gallery to achieve different effects. =)

greg.harvey’s picture

Status: Active » Reviewed & tested by the community

Module is obsolete, won't bother to do a README, but will apply this patch to -dev and role one final release at some point.

greg.harvey’s picture

Status: Reviewed & tested by the community » Fixed

Committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.