I love image browser and it's working great for me. Now I'm trying to create a view that pulls the node title and the image that was uploaded in the body of that node (without the text). I can't seem to find a way to do that in Views. Is this possible?

Comments

scroogie’s picture

Yes, change the view to field based display and insert the two fields.

Mindy’s picture

Thanks for your response scroogie. In the Basic Settings for my View, I have "Row Style" set to "fields". Then I when I go to add a field, what should I be looking for? I see one field called "Image: image", but nothing displays when I use it. Should I be looking for something like "Node: image"?

scroogie’s picture

Ah, sorry. I confused the issue queues of imagebrowser and imagefield. Imagebrowser only inserts a tag in the node body, so views cannot derive the information of attached images from the database. What you can do is create a template called

views-view-row-node--{NAMEOFYOURVIEW}.tpl.php

in your theme folder in which you display only the image and title. Or similarily with the field-based approach:

views-view-field--{NAMEOFYOURVIEW}--body.tpl.php

hth

Mindy’s picture

Many thanks! I will give that a shot.

Cheers!

peter törnstrand’s picture

Status: Active » Closed (fixed)