[support] Create a group of nodes and taxonomies programmatically

Tim Knittel webdev at brandtim.com
Sat Jun 27 21:21:26 UTC 2009


CCK + Content Taxonomy + NAT + Views will do 90% of what you want. Views
will even handle the URLs (as arguments).

Instead of thinking of each product as a node with sub-nodes, think of each
product as a combined node & taxonomy term and each "sub-node" as being
classified with both a product term and a type (description, layout,
features, etc.) term. No need for nodereference.

BrandTim


-----Original Message-----
From: support-bounces at drupal.org [mailto:support-bounces at drupal.org] On
Behalf Of Luke
Sent: Friday, June 26, 2009 3:35 AM
To: support at drupal.org
Subject: [support] Create a group of nodes and taxonomies programmatically

Hello

I am trying to deploy a site (D6), which will include a list of 
manufacturers, each with a sublist of model numbered products.

Each one of those products will include several nodes, addressing that 
product's attributes.

This is basically a review type site--it isn't selling things directly, so 
a commerce package is not desirable here.

What I would like to be able to do, is create a master CCK node for a 
particular product.

Select a manufacturer from the taxonomy list, and enter the model number 
of the product.

The saving of that node would then create the taxonomy entry for the model 
number, and several other nodes to hold various descriptive pages which 
are the same for each product.

I.E. each product has a description node, a layout node, a features node, 
etc..

Nodereference fields on that master node should also fill in automatically 
with links to the newly created info nodes.

This could maybe also be done by creating the taxonomy entry for the model 
number, and having that create the master node and all of the blank info 
nodes.

I would then like to be able to access, not only through the master node's 
links, but also via something like:

http://site.com/manufacturer/modelnumber/features
http://site.com/manufacturer/modelnumber/layout

That sort of thing.

Is there any extant system which comes close to pulling this off in an 
existing module or set thereof?

I know about this, which might come in handy if I have to code most of it, 
but I'd really rather avoid that.
<http://crotown.com/content/programmatically-creating-instances-cck-types-dr
upal-6>

Thanks

Luke
--
[ Drupal support list | http://lists.drupal.org/ ]



More information about the support mailing list