Hello,

I am working on setting up block that displays an image and a name in a in a block as a sort of "star of the week" . I want to make this easy to update for end-users.

So I thought CCK, imagefield and views could do this relatively easily.

I installed the modules, setup a content type for "Star of the Week" with an image field (star-image), title and body.
Then I made a star of the week view, as
a block, list view, (tried table view also), 1 node per block,
for the field I chose the "star-image" field I created and sorted by node:created time.

I enable the new block but do not get any images or anything from the content type I created.

Is there a better way to accomplish this functionality?

Comments

Jeff Burnz’s picture

did you add a filter such as "published", and forget to publish your star nodes?

did you add a filter for the star content type?

the way you are doing this is fine, I would suggest using Node Queue module if an admin is going to be updating the star of the week, this integrates well with views also.

chaloalvarezj’s picture

I have a view where one of the fields is an imagefield.. the view works perfectly getting the results, but the the field containing the imagefield has nothing!

HAs anybody know how to solve this?

Thank you

Jeff Burnz’s picture

I should have said this to begin with, install the imagecache module, this will allow you to set different image sizes and show them in views and control the size in teaser and node view via the content types field display settings.

chaloalvarezj’s picture

Does it mean that the imagefield does not work by itself with views?

Anyway, will give it a try to your solution... Thank you.

internets’s picture

What I did to get it working was something like this:

created a category tag under a main category of "Topic" called "home_page_slideshow"

Then with image module I have a resize size set for like 320x 300 or whatever my slideshow dimensions are. and name that "slide_show_size" or something similar

In views - create a new view
name it, etc

Page View:
URL - whatever
view type: Slideshow List
nodes per page: 1

Under "Fields"
I select a field
"Image: Display Image" and under the option I can choose my Image module resize size of "slide_show_size"

Under "Filters"

I have
Node: Type -is one of- -image-
and
Taxonomy: Term - is all of - Topic:Slideshow

Mine is setup as a page view. I am using the insert views ( http://drupal.org/project/insert_view ) module to pull this view into the homepage.
So on my homepage body

I insert

[view:homepage_slideshow] wherever I want the slideshow. Thin style it appropriately if needed.

I think these are all the basic steps I did to get the views slideshow working.

skaaptjop’s picture

I witness the same behaviour