This looks like a really great module.
Here is an example of what I want to do:
Lets say I have a content type called node A. Then I have 2 more content types called A1 and A2. A1 and A2 are both children of node A. Ideally when I am viewing node A there would be 2 links at the bottom of the page "add node A1, and add node A2". When the user clicks on either of these links it lets them submit the respective node and links it to node A in the hierarchy structure.
Is there a way to do this?
If not is there a way to change the name on the children tab to something else?
Thanks in advance.
Comments
Comment #1
ronan commentedI usually do this by adding the links to the node type in the theme.
Comment #2
autonetex commentedWhat's the right syntax of adding link (to create child) to node.tpl file? I am using 6.x-1x.dev ver.
thank you. It's great module.
Comment #3
andreiashu commentedHi, this is for 6.x version:
node/add/[node_type]?destination=node/[parent_nid]/children&edit[parent]=[parent_nid]Where:
-
[node_type]is the node type of the child you want to add-
[parent_nid]is the node id of the parent-
[parent]you let it as it is (literally)For the
lfunction you can write like this:l("Add new child node", 'node/add/[node_type]', array('query' => array('destination' => 'node/[parent_nid]/children', 'edit[parent]' => '[parent_nid]')))Good luck.
Comment #4
andreiashu commentedSetting this as fixed.