I'm trying to do a local test-setup for creating a winery list inspired by http://napavalleyvineyards.org (http://drupal.org/node/84707). Please offer some insight on the next questions.
In my setup a winery is a CCK node, including a 'offers tasting' check box.
Q1: How do I display this checkbox in a VIEW tableview?
A winery has many wines (a wine = a CCK node)
Q2: How do I display a 1->Many relationship? meaning: a description of the winery (CCK fields) and below that a (VIEW?) list of the wines it offers?
I'm still wrestling with Drupal, trying to understand it, posted 5 questions already; none were answered (I know you're all volunteers and appreciate your contributions, been reading and absorbing a lot)...

Comments

xpereta’s picture

You can use the views module to define a view that lists all the wines of a winery.

Then with the views_build_view function you can insert this list in the template of the winery content type. You should make the id of the winery a parameter to the wines view.

You could instead use the insert view module to insert the wines list into one of the fields of the winery content type.

Of course this is just the general idea, and I'm sure there are far more elegant ways to achive your goals.

PS: While I agree that the documentation could be much better, you will find that writing descriptive and sensible titles to your posts will make them much likely to be read and answered. ;-)

zywieco’s picture

Thank you VERY much for your prompt reply! I will investigate your suggestions asap.
"writing descriptive and sensible titles" hasn't worked for me in my past 5 posts; this one however was an instant hit... ;-)

xpereta’s picture

I'm working on something similar but in my case the parameter of the view was a taxonomy id, I think you could make the parameter a node reference field. (I assume you are using a node reference field to say to which winery belongs a given wine).

Now that I think of it you should definitely have a look and experiment with the category module. With the category module you can create a content type that also acts as a taxonomy to clasify content. I tested it but found the configuration overwhelming and a bit unintuitive, and I was having issues with the i18n module.

Please, let us know how this works for you.