Support Multiple Value imagefields
| Project: | Cooliris (PicLens formerly) |
| Version: | 5.x-1.6 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Hi all,
Introduction
Piclens/cooliris slideshows were not showing all of the images in a Multiple Value imagefield, only the first image per node.
This patch has been used in the following configuration:
Modules:
-CCK with imagefield
-Views
-ImageCache
Setup:
-Multiple content types using the same imagefield (Image)
-'Image' imagefield is set to accept Multiple Values
-Set up a Grid (from the Views Bonus Pack) type View page with the fields:
-- Node: Title and
-- Image imagefield (with a Lightbox2 option)
-Set a MediaRSS: RSS Feed Selector (Display All values) argument
-Set the options under MediaRSS/PicLens Fieldset to:
-- Image field: Image
-- Preset for thumbnail: Thumbnail (imagecache preset)
-- Preset for content: Large_Image (imagecache preset)
Solution
Modify the piclens_views_mediarss_items($args) function within piclens_views.module, specifically under the else statement at line 167. This required reorganisation of some of the other code, which may effect configurations using Image node types.
I am not a strong coder - there is a bit of code redundancy, so this needs review and/or work.
I hope this is helpful!
Cheers
| Attachment | Size |
|---|---|
| piclens_views-multiple_value_imagefield.patch | 1.98 KB |
