D6.22 - attach content to node type I was wondering if its possible to setup a facility where I can attach content to existing content?  Let me elaborate...say I have my Page nodetype, but I want to give the content-editor the ability to add extra information to it that can be displayed in a separately styled div (I do not want the editors playing around with the HTML - they don't know how to anyway). This must be a zero-or-one relationship.

I'm thinking something like the nodereference_url module, except that I want to limit the amount of node references to a maximum of one. Does anyone how this can be achieved? Thank you!
This is actually pretty easy.


Edit your content type (or clone to a new type).  Add in a noderefernce CCK field as needed.  Configure it for not mandatory, but limited to one value.
Edit the fields for the type so that they are all hidden.
Add a preprocess_node for your content type in template.php to read in the node relationship, theme the node, and then add it as a theme variable.
Create a node template for your type.
Edit the node template, to add in your div in the markup.
Print out this theme variable in the node template.


This should get you down the right path.