By Drupalski on
Hi Guys,
I really need some help on CCK and Views. It's been weeks in my spare time between projects I've been trying to achieve something and no results yet. All the tuts I've seen don't start from scratch and they loose me at the beginning.
I'd like to be able to create teasers for my home page and panels that I can assign a class or an id so I can customize them with css. BTW, I don't want to use panels as a module. I'm using the ZEN theme. I don't understand the correlation between CCK and Views and how to bring them as a specific content in a block.
I don't have any problems with CSS but PHP is not my venue.
Any help is appreciated. Thank you.
Comments
Why not use views to create a
Why not use views to create a block display?
Correlation between CCK and
Correlation between CCK and Views.
CCK can be used to customize content types (add custom fields, change field settings, display settings etc).
Views can be used to create any kind of display you want, displaying fields etc that you may have added using CCK, as well as standard Drupal fields etc.
As long as your content type contains the fields you want, you can use Views to create displays in any format you like.
There are many tutorials out there that would clear it up for you. Hope this helps.
Sorry, still not there
Thanks but how exactly do you do it? I know the capabilities but not the exact steps. I'm not sure how to use "Views"'s options and especially filters and fields. For now I just want to be able to display stylized bullet lists with custom bg right next to each other and text fields over/below them.
Then how do you connect with cck and do you export these as block or what? I've learned quite a bit just need some rudimentary input in this direction, it's my first drupal site.
Thank you in advance. I'm working the weekend trying to figure it out so I'd really appreciate any help.
this is where I started:
You don't have to "connect" to CCK. All your CCK fields just show up in views.
Just do this:
1) Create a new view of type "node"
2) On the left there is a drop down list. Select "block", and click "Add display"
3) Give your block a name in "Block Settings" : admin
4) Add a filter "Node: Type" and choose your CCK content type
5) Add a field "Node: Title"
6) Add a field "Content: Your CKK FIELD NAME"
7) Add a sort "Node: Post date" decending
8) Now you've got a block that shows your most recent nodes of your CCK type,
displaying just the node title, and the value of your CCK field.
9) Save it.
10) Go to you admin/build/block and put you new block you named in #3 somewhere
It's not hard. You just need to play around with it.
Thank you
Thanks a lot, that helped big time. Do you know where I can find more specific info on filters, fields, arguments, relationships, and sort criteria? The small descriptions that the system has before usage most of the times is not really on the spot.
This small step - "Add a filter "Node: Type" and choose your CCK content type" really does it.
The puzzle comes together after awhile.
Thank you again.