I have seen lots of questions about new content types and how people can create views for them. So I decided to document the process of creating a content type and a corresponding view.

If you have about thirty minutes to spare then you can see how I do this.

http://learn.awakenedvoice.com/2007/07/30/drupal-cck-and-views-tutorial/

Soon you should also be able to access a flash version at http://blip.tv/file/322542/.

Cheers,

Rob Safuto
Awakened Voice
http://www.awakenedvoice.com

Comments

rimma’s picture

I have looked for the tutorial about CKK and views for sometime.
But i still have a question about url of content type.

I set a new content type called "video" and set pathauto to [type]/[title].
the content on the node video/videotitle is OK, but the url /video page shows me page is not found.
I think it is possibly I need set up something more.
Hopefully get some ideas.

Richard Ma
www.meetcampus.com

Anonymous’s picture

If the url to '/video' is not found then something in your view isn't set right. The most obvious thing to make sure of is that you've created a view with the path of video. If you have created a view with the path of 'video' then you need to go into the settings of that view to make sure you've enable to page view and set a filter to show the type of content you want to see in the view.

Remember, creating the new node type and setting the path auto will give you a url to individual posts. If you want to see a group of posts on a page then you must create a page view using the views module.

Rob Safuto
Social Media Services
http://www.awakenedvoice.com

Anonymous’s picture

p.s. philosophical questions aside, I am having trouble getting a View to show the content.

I have two computers (same OS, same versions of Drupal, mysql, PHP, same relevant modules installed, enabled and configured).

I want to make a staff directory. I've created fields for this and then instances of content, published them, and added those fields to a Page View, and given the View a URL (Path module enabled).

On one computer, the View works (it 'finds' and displays the content).

On the other, the View pops up, with labels but no content.

Same path, no filters or arguments in the view, correct fields chosen, all instances of content published, permissions are correct (I get the page with the view, but no content).

Can you think of anything which might cause this?

Thank you for your time.

Anonymous’s picture

I'm still pursuing this problem: two different computers with identical set-ups, one produces a View with content, the other only produces a View with columns where content would go, but no content.

I tried adding a pre-existing field (Node: Title) to the View.
This is displayed! Only the content of field types which I created is not being found and displayed. But the field types I created (for which actual, published content does exist and is seen in other contexts) do appear in the pop-up menu for adding fields to the View.

The fields I created are Text (Text: Name, Text: Email, etc.).

What could be going on?

Anonymous’s picture

I made it work by adding a filter to include (Node:Types=the content type I had created).
This is in addition to specifying the fields.
It works but I do not yet know why this wasn't necessary on the other server, where I used no filters and the View automagically found & displayed all nodes of the desired content type, just specifying the fields.

Gunderstorm’s picture

This is SO amazingly helpful! Thanks for taking the time to do it!

steve02476’s picture

Thanks very much for taking the time to produce this - I'm sure it took a lot of preparation.

Terrance33’s picture

Thanks very much. Learned lots.

Anonymous’s picture

Point your browser here to see videos for Views2 : http://drupal.org/node/248766