Fill 'er up mate

I promised you that this last page of the tutorial would be fun, and fun is what it will be. All you have to do is to go and create a whole lot of categories in each of your containeris. Surely you don't still need my help for this - go on, just do it! Those containers are empty, lad, so you need to fill 'em up.

When you're creating your categories, you should notice that the list of available containers is constrained by the settings that you applied in the previous page of this tutorial. For example, here are the containers you'll see when adding a new categoryi of type person:

Creating a person category
Categories of type 'person' only have 'people' available as a container.

Whereas here are the containers that you'll see when adding a new category of type category:

Creating a topic category
Categories of type 'category' have all containers available for selection, except for 'people'.

Bit different, eh? Once you're done creating categories, you can create a whole bunch of story nodes, if you wish, and assign your newly-created categories to them.

So that's how you use CCK node types with the category module. CCK node types are just one example, of course: you can use any node types in this way, from simple 'page' type nodes, to image nodes, to event nodes. I just chose to focus on CCK nodes, because they're the ones that offer the widest range of possibilities. Oh, and also because mentioning 'CCK' anywhere at the moment is guaranteed to attract hordes of Drupal-luvvin' readers.

Hopefully, this tutorial has tickled your imagination as to just what can be done using this new feature of the category module. The example that I walked through was quite basic - there are many more things that can be done by combining category with other node types, probably more than I've thought of at this stage. Have fun experimenting!

Question about cck-node-as-category theming

first, thank you for your realy cool modul.

using node-types for categoryis is a great feature, which allows by node-type-theming a lot of possibilities ... but ...
newbie-question:
when i don't use the $content variable in my category-node-template, how can i display the list of associated nodes to this category?

thank you in advance ...

solution

i found myself the solution:

<?php  $catNodes category<a href="/glossary#term39" title="category: A node type that can be used for creating a static page within a hierarchy, and/or for classifying dynamic content. A category must have an enclosing container, which is often (but not necessarily) also its primary parent. Many of a category's characteristics are determined by the settings applied to its enclosing container. A category is equivalent to, and compatible with, the 'term' entity in the taxonomy module." class="glossary-indicator">i</a>_select_nodes(array($node->nid));
print 
category_render_nodes($catNodes);?>

Adding New CCK Node Children Like Books Module

Hi,

I am fairly new at this and have been tinkering with CCK and Categories over the past few days. Thank you for all your hard work and great module!

I have created a CCK node called WebDocs to basically replace the Books module. I am starting from scratch and figured I'd have more control by creating my own than using books. One of the things i am trying to do is create a way such that a user can add a new child WebDoc under the one they are currently reading and
1) Have the link say "Add Child WebDoc" rather than "Add New Category"
2) Automatically place the new WebDoc under the page they were reading without them having to choose the location manually

I am just trying to get the user experience to be a bit more seamless and i think that the less a user has to understand about categories and nodes the better.
Thanks!