Active
Project:
Related Subforms - editing/adding nodes together with their children node types
Version:
5.x-1.0-beta1
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
1 Apr 2008 at 23:39 UTC
Updated:
8 Apr 2008 at 06:52 UTC
Comments
Comment #1
Tamar Badichi-Levy commentedThis is an interesting feature. I hope I understand you correctly.
Do you mean that when viewing a node there will be another form in the page from a related content type? where it will be possible to choose either an existing review or create a new review using the form?
Comment #2
patchak commentedHey there,
I mean that we could add another related node, directly from the node that we are looking at. We should then 'hide' the nodereference field, since the node form is embedded directly into the source node.
Thanks,
Patchak
Comment #3
Tamar Badichi-Levy commentedOK,
Let's think if a simple example that may explain the functionality.
Let's say we have a scientific paper content type with review as a related child content type. Any user that reads a paper would have the possibility to fill and submit a review about this paper. In order to achieve this functionality we need to call drupal_get_form of the related content type when viewing the parent content type. That can be done.
However, I'm sorry that I'm a little slow here but I don't understand the nodereference field hiding/showing functionality. The way I get it, nodereference does not deal with content type relations, but here you suggest to create a relation between two nodes: one (the parent) in a view mode and the other (a child cck type) in an edit mode.
Comment #4
patchak commentedWell what I mean is that the second node will be linked to the parent one, with node reference. But since the form is directly displayed under another node, then we don,t need to see the noderefence select field, as the child node would automatically get the parent node as it's nodereference value.
Is is clearer?
Patchak
Comment #5
Tamar Badichi-Levy commentedNot entirely clear yet. The purpose of subforms is to be able to include several content types' forms in one form. If you need to put a form at the end of a certain viewed node you can simply add the form with no need to use subforms (using hook_nodeapi). That will make it much easier. If there is no need to use subforms and no node relativity needs to be set then your idea is great for another new module or to extend the existing node reference module. If you believe that there is a place for subforms and relativity deployment in your idea please explain how you will use them.
Best wishes, Ofir.