I am building a site where users would be creating nodes and subnodes. The subnodes are linked to the parent node by a node reference field on the parent node. The basic system of create subnodes, write down node ids or titles, and use the text box on the parent node too complicated for these users.
Here are my requirements:
* Workflow must be simple and streamlined. With theming, the basic node add dialog will work.
* All nodes and subnodes must be created simultaneously after clicking one submit button. This is because if a user decides to abort the addition process halfway, the site would get left with subnodes without parents.
* No javascript popups. This is such basic functionality that I do not want to depend on javascript to do it.
The parent and child nodes all have cck fields and taxonomy.
I have tried two different approaches so far. The first was to create a custom form that grabbed the node add forms and converted them into one super form. This turned out to be very difficult and very fragile, due to the complexity of the node add forms. The second approach was to embed the node add form in a node reference widget. This seems to be impossible.
Does anyone have any other ideas how I should go about this? I really want to avoid using the form api to create a custom form that has to be modified every time a field is added, removed, or changed.
Thanks!
Comments
bump anyone?
bump
anyone?
Well I will say I am in the
Well I will say I am in the exact same boat as you - Node Relativity module would work nicely for this but currently there is no port for Drupal 6. I, along with many others, are eagerly anticipating the release of that module. Until then, I am scrambling to find a custom solution and as of yet I have had no luck...
Let me know if you find anything and I will do likewise...
_
I don't think it's exactly what you're looking for, but have you seen the http://drupal.org/project/nodereferrer_create module?
===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz
Thank you for the reply.
Thank you for the reply. I looked at this before. It would probably work, except that the D6 support is terrible. Code breaks left and right while using it. I forgot to mention that the solution, whatever it is, must work in drupal 6.
Update:
I figured out that the breaking code was some of mine. Should have looked more closely at the error message.
Well I will say I am in the
Well I will say I am in the exact same boat as you - Node Relativity module would work nicely for this but currently there is no port for Drupal 6. I, along with many others, are eagerly anticipating the release of that module. Until then, I am scrambling to find a custom solution and as of yet I have had no luck...
Let me know if you find anything and I will do likewise...
Same here
Same here! I think I'll have to figure out a work around. Let me know if you come up with something.
Regards!
---
Esteban S + Developer
PokerSource, Costa Rica
Just as an update, the
Just as an update, the project I was working on that involved this has mostly stagnated, primarily because Drupal seems to be a horrible platform for any kind of cataloging system. I ended up just writing a multipage form that duplicated everything. That was horribly user unfriendly, so I quit until either AHAH became easier to use (or has better docs), or someone writes a better module for this particular use case.