Closed (fixed)
Project:
Node Images
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
18 Jan 2007 at 17:41 UTC
Updated:
12 Feb 2007 at 01:30 UTC
Jump to comment: Most recent file
Hi there!
Is there a way to make the images that I upload with this module visible by a Views listing?
In Teaser view they appear, because they are considered part of the teaser, but on table and list view... there´s no way.
I´ve tried these fields on Views:
Image Attach: Dispaly Image
Image : Dispaly Image
But they don´t show up.
Is there a way to solve this?
Yhanks for your help!!!!!!!!!!!
Rosamunda
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | node_images.views_.inc_.patch | 1.61 KB | stefano73 |
| #4 | node_images_1.patch | 1.1 KB | stefano73 |
Comments
Comment #1
Rosamunda commentedErm... anyone interested in having this feature?
Comment #2
onepairofpants commentedYes! I would love views support. This module is so useful already, but views support would make it even better.
Comment #3
Lityi commentedDesperately...
Comment #4
stefano73 commentedI started working on the views support. You need the include file node_images.views.inc (http://cvs.drupal.org/viewcvs/drupal/contributions/modules/node_images/n...), and you also have to patch the node_images.module using the attached patch.
You'll see a new item in the field list: "Node images: Display node images", and you will be able to set the image size (thumbnail or fullsize).
Comment #5
Lityi commentedHi Stefano,
unfortunately the new item in the Fields drop-down doesn't shop up for me.
1. I installed latest 5.x tarball
2. I copied the .inc file into the module's dir, and patched the module:
# patch node_images.module node_images_1.patch
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|Index: node_images.module
|===================================================================
|RCS file: /cvs/drupal-contrib/contributions/modules/node_images/node_images.module,v
|retrieving revision 1.7
|diff -u -r1.7 node_images.module
|--- node_images.module 17 Jan 2007 19:05:07 -0000 1.7
|+++ node_images.module 25 Jan 2007 02:17:54 -0000
--------------------------
Patching file node_images.module using Plan A...
Hunk #1 succeeded at 850 with fuzz 2.
done
#
3. I use PHP4.4, MySQL4, nothing particular...
4. I found a note in the latest log entries, like:
User Anonim
Location http://www.antracitenet.com/ujradio/admin/build/views/edit/8
Referrer http://www.antracitenet.com/ujradio/admin/build/views
Message admin/build/views/edit/8
Level warning
(I am logged as admin, of course)
So, it is a little bit strange, but I hope the details above will help.
Comment #6
stefano73 commentedCan you try emptying your cache table? Execute this query on your database:
TRUNCATE cache;
Comment #7
Lityi commentedHI Stefano,
works like charm!!!
(I thought that I emptied the cache just with updating module list - as it worked in 4.7 :)
Very well made, a million thx!
:beer:
Comment #8
stefano73 commentedIs this all you need about views support? I'm not much into using views, so I don't know well what kind of integration with views you need for this module. Let me know if there's something to change or improve.
Comment #9
Rosamunda commentedYou are a genius!
THANK YOU VERY MUCH!!!!!!!!!!!!!!!!!!!!!
Works exactly as I needed!!
Now this module is perfect, absolutely perfect!!!!!!!!!!
Thanks!
Rosamunda
Comment #10
Rosamunda commentedComment #11
Lityi commentedyeah, nothing from my side, it is as perfect as it should be ;)
Comment #12
stefano73 commentedThe attached patch adds a filter in the views edit page, allowing you to select only nodes having (or not having) node images.
Comment #13
stefano73 commentedCommitted to CVS. Thanks everyone.
Comment #14
Rosamunda commentedHi again stefano!
This patch is working just great!
Everything goes quite smooth now.
I have only one question left about this: Erm... is there a way to put inside the views table just the first image?
I just realize that all images appeear... even in the table_view...
Thanks for your help!!!!
Rosamunda