Question

I am currently using Drupal 7, and I am trying to get my images to be displayed in a view on the main page. So far I have created:

  • Created a content type containing a title, body and image field
  • Created two nodes that both contain an uploaded image
  • A view and a block that has
    • fields: title, nid, and image
    • filtered by: published and type (set to the content type I created)

When I look at my content type I can see the name, body and the image that I uploaded. When I go to the main page, I can see my view with the content, but it only shows the name and the body; it doesn't show the image.

Is there anything I can download and/or do to make this work? I just want the images to appear within the block (in my view).

Was it helpful?

Solution

check admin/user/permissions page. if you use imagecache check view imagecache permission and set it. and set view image field permission.

OTHER TIPS

@Kyra, I do have the exact same issue with image field not showing in view, and this, since I've updated the view module, I'd say. The thing is I use Drupal Commerce (with Drupal Core 7), but I don't think the issue is directly related : I set a view on the front page, displaying products.

In the "Format" area :

  • Format: Grid | Settings
  • Show: Fields | Settings

In the "Fields" area :

  • Content: Title
  • Content: Body
  • Field: Illustration

In the "Filter" criteria :

  • Content: Published (Yes)
  • Content: Sticky (Yes).

The view only displays the title and the body. Of course, when I look at the content types, outside the view, their image is shown. This occurs for all content types and products created before the update of the view module. Because, if go through the process of creating a new product type, product, product display and finally a content (dedicated to the product I've just created), there, I get the the image of it in the view. So it feels like some constraints in some tables have been messed up. Did you manage to solve this issue Kyra ?

For future reference, check the content type "manage display" tab. There is a subtab for "content" and "teaser", so you have to make sure the picture field is being displayed there (and not hidden). You can also change the format, etc.

When you create a node, below the body field there is the "Text format" combobox; choose "Full HTML," and everything will be ok.

Licensed under: CC-BY-SA with attribution
Not affiliated with drupal.stackexchange
scroll top