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

Comments

Rosamunda’s picture

Erm... anyone interested in having this feature?

onepairofpants’s picture

Yes! I would love views support. This module is so useful already, but views support would make it even better.

Lityi’s picture

Desperately...

stefano73’s picture

Status: Active » Needs review
StatusFileSize
new1.1 KB

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

Lityi’s picture

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

stefano73’s picture

Can you try emptying your cache table? Execute this query on your database:

TRUNCATE cache;

Lityi’s picture

HI 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:

stefano73’s picture

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

Rosamunda’s picture

You are a genius!
THANK YOU VERY MUCH!!!!!!!!!!!!!!!!!!!!!

Works exactly as I needed!!
Now this module is perfect, absolutely perfect!!!!!!!!!!

Thanks!
Rosamunda

Rosamunda’s picture

Status: Needs review » Fixed
Lityi’s picture

yeah, nothing from my side, it is as perfect as it should be ;)

stefano73’s picture

StatusFileSize
new1.61 KB

The attached patch adds a filter in the views edit page, allowing you to select only nodes having (or not having) node images.

stefano73’s picture

Status: Fixed » Closed (fixed)

Committed to CVS. Thanks everyone.

Rosamunda’s picture

Hi 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