Why doesn't View include content I created

meles - August 22, 2007 - 23:23

I am trying to create a page view with some content.
On one server I get a nice page view.
On the other all I get is a header, and columns & labels for the potential content.

Same operating system (OSX), same version of Drupal, same modules installed (and activated), same procedure:

- I created a content type and added fields.
- created an instance of that content type.
- created a view, with page enabled, and table view, and a url ("staff").
- added the fields to the view which I had created for the content_type.
Saved, then clicked "staff".
On server A a staff directory (one listing so far), on the other nothing.
The view has no filters, no arguments.

The only difference I can see is:
- successful "A" is in a subdirectory, no virtual host, while failing "B" has a domain name

Suggestions very welcome!

Why doesn't View include content I created, solved, maybe

meles - August 28, 2007 - 21:50

I got it to work by adding a filter which includes only node:type = the desired content type.
This is in addition to specifying the fields I wanted.
I don't know why it's necessary for this installation and not for the other Drupal installation (in that case: no filters, the View just found all content of the type in the specified fields and displayed it).

 
 

Drupal is a registered trademark of Dries Buytaert.