Jump to:
| Project: | Couloir Slideshow |
| Version: | 5.x-1.7 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
I've been looking for a module to view images attached or associated with a particular node. That is, we import lots of images into a folder: files/[contenttype]/[idorcckvalueofnode]/all the images
So, I was wondering whether changing the function 'couloir_slideshow_block' from
function couloir_slideshow_block($op='list', $delta=0, $edit = array())
to...
function couloir_slideshow_block($op='list', $delta=0, $edit = array(), $node)
or...
using arg(1) within the function
... might make it possible, with a couple of tweaks in the "case: view" section (building the $imagepath string) to show just images from the specific node's images folder. Is this a crazy idea?
Planning on trying it on my testing box. Then, put the block in for the content type of choice and see if it knows which images to load.
Thanks, hope it works...
Comments
#1
Just an update: yes, this works. Anybody else wants it, I can post the tweak I made. I have it computing things from cck fields (by loading node using arg(1)) depending on the content type, as well.
#2
Could you share your tweak here? I'm appreciated it. I wanna it show different images belong to each node too.
thank you
#3
+1