Does this module integrate with Galleria, ImageCache and Lightbox2?
I'm trying to use Views Galleria (preferred), Views Slideshow or Views Carousel. I cloned the Flickr_attached block, created a page view for each View style, added fields, filters, one sort criterion, and removed the NID argument. The images aren't appearing.
Here's the SQL query being output by the Views Galleria display:
SELECT node.nid AS nid,
node_flickr_images.data AS node_flickr_images_data,
node_data_field_flickrphoto.field_flickrphoto_id AS node_data_field_flickrphoto_field_flickrphoto_id,
node_data_field_flickrphoto.field_flickrphoto_type AS node_data_field_flickrphoto_field_flickrphoto_type,
node_data_field_flickrphoto.field_flickrphoto_nsid AS node_data_field_flickrphoto_field_flickrphoto_nsid,
node.type AS node_type,
node.vid AS node_vid,
node.comment AS node_comment,
node_revisions.body AS node_revisions_body,
node_revisions.format AS node_revisions_format,
node.created AS node_created,
node.title AS node_title
FROM node node
LEFT JOIN node_flickr node_flickr_images ON node.vid = node_flickr_images.vid AND node_flickr_images.type = 'image'
LEFT JOIN content_type_testing_flickr_photosets node_data_field_flickrphoto ON node.vid = node_data_field_flickrphoto.vid
LEFT JOIN node_revisions node_revisions ON node.vid = node_revisions.vid
WHERE (node.status <> 0 OR (node.uid = ***CURRENT_USER*** AND ***CURRENT_USER*** <> 0) OR ***ADMINISTER_NODES*** = 1) AND (node.type in ('testing_flickr_photosets'))
ORDER BY node_created ASC
Any idea what's going wrong here?
Comments
Comment #1
jbomb commentedI started in on an integration with imagecache, but quickly ran into trouble because imagecache does not work with remote images. Flickr Attatch could retrieve a local copy of the flickr image and then cache that, but I'm not sure when I'll have time to add that functionality along with thickbox and lightbox2.
I was able to retrieve attached images using the following view. Note that flickr_attach support for photo albums is very limited.
Comment #2
juropel commentedjbomb,
Thanks for that code! I imported the view above and was able to get a single l image to appear through that view.
Is this because of the Flickr API?
For the 'Flickr Attachment' field, would it be possible to have checkboxes instead of radio buttons, so I could select multiple/all photos in an album? Or does multiple values in one field create a conflict with Views? (I'm getting the sense that it does.)
Or alternative would be to allow multiple Flickr Attach fields (as with other content). Are either of these plausible?
To give you some context, here's what I'm trying to accomplish:
I would like (my client) to be able to upload photos to a Flickr album, then create a new node from the content type I've created, add a title etc., select one *or more* photos from the Flickr album, and save the node.
Then I would like to have 2 pages:
1. A teaser grid displaying the title, description, and Flickr photos. Clicking on any of these element would link to
2. the node/view that would allow the user to browse all photos in that node.
Any suggestions/help you can offer would be greatly appreciated!
Comment #3
juropel commentedjbomb,
I'm going to try the Media Flickr module. I'll post here again to you shortly to let you know if it works.
Comment #4
jbomb commentedI'm glad that you found the previous post to be helpful.
Flickr Attach has limited support for flickr albums because we haven't settled on the approach. I would like to add a views argument that pulls each image in as a separate record, but I haven't had time to experiment with views and remote data sources.
Unfortunately, it would be a major jump to support multiple flickr images for a single node. You might consider the following approach for your current situation.
does that make sense?
OR
You could use flickr_field which is bundled with the flickr module or perhaps emfield. There's a pretty cool patch for flickr_field here... I think this patch is required for ahah_helper if you go the patched flickr_field route.
Comment #5
juropel commentedHi again jbomb,
Thanks for your help. I have a few more questions:
1. Is there a way to make Flickr Attachment field required?
2. Is there a way to uncollapse Flickr Attachment? Do I change '#collapsed' in line 368——to '#expanded'?I figured this out in line 367.2. How do I move the Flickr Attach fieldset above the Comment and Menu fieldsets?
3. Why doesn't Flickr Attachment (and Flickr Album) show up under the 'manage fields' tab in my content type?
Thanks again,
Julia
Comment #6
jbomb commentedFlickr Attach is not displayed in the "manage fields" tab for the content type because it is not a CCK field. You can make the flickr attachments required and shuffle the order of your node form using hook_form_alter(). I haven't tried this before, but you might have a look at Node form columns for adjusting the node form.
Comment #7
aaronbaumanRe: comment #6
Actually, cck exposes hook_content_extra_fields expressly for this purpose.
Fully undocumented, in classic cck style.
Try this patch
Comment #8
juropel commentedHey, thanks, aaronbauman! Just saw this! I will try it out this week!
Comment #9
hasdf commentedI am able to get the Album ID from a View I created. (Flickr Attach Field in Views)
But how can I output the images of the Album?