Adding Parameters to Node Reference field

Is it possible to add a single parameter to a multiple-selection Node Reference field? Optionally, is there a way to create 1..n Node References, where Nodes can repeat?

Scenario: I have defined a Content Type, Products. While most Products define single real-world items, such as sticks and stones, some products may define groups of existing products, i.e. stick and stone. This is easy enough to set up using a Node Reference that implements either a multi-select box or check boxes, enabling me to link to the "Stick" node and to the "Stone" node.

But what do I do if the Product consists of 4 Sticks and 2 Stones???

Acceptable Cases:

1) A "Quantity" Field for each Product that can be added.
2) An "Add" list... keep hitting "+" and it adds a Node reference to a growing list. Want 4 Sticks? Add it 4 times!

Login to post comments

Getting the quantity field

yhager's picture
yhager - Fri, 2009-05-29 04:45

Getting the quantity field right is difficult. You can use the experimental "multigroup" module for that, but it is not even alpha at the moment.

Here are some more details about this: http://www.poplarware.com/cckfieldmodule.html