Hello, I have a content type eith a related node CCK. I wanna access a create node with an argument telling the nid of the refered node. I tried to apply a php code to the default Value without luck. Something like that: array(
0 => array('nid' => $args[0]),
);
Where is the error?
Thank's for all!
Pol Maresma / pol@polnetwork.com PolNetwork.com / Serveis d'Internet msn: marolijo
can u please provide code.... so that i can help u better
On Dec 13, 2007 4:31 PM, Marolijo - Pol maresma marolijo@yahoo.es wrote:
Hello, I have a content type eith a related node CCK. I wanna access a create node with an argument telling the nid of the refered node. I tried to apply a php code to the default Value without luck. Something like that:
array( 0 => array('nid' => $args[0]), );
Where is the error?
Thank's for all!
Pol Maresma / pol@polnetwork.com PolNetwork.com / Serveis d'Internet msn: marolijo
-- [ Drupal support list | http://lists.drupal.org/ ]
What I mean is, on a node view place a link for registered user that points for example to node/add/ctype/21 Where Ctype is the content type for the new node ans 21 is the nid for the referenced node on a cck field of the new Ctype node.
Is it possible? I know how to place the link, but not how to get the "21" argument and place it on the node/add cck input field.
Thank's for all.
_____
De: support-bounces@drupal.org [mailto:support-bounces@drupal.org] En nombre de khurram fraz Enviado el: dimarts, 18 / desembre / 2007 14:08 Para: support@drupal.org Asunto: Re: [support] Create node with argument?
can u please provide code.... so that i can help u better
On Dec 13, 2007 4:31 PM, Marolijo - Pol maresma marolijo@yahoo.es wrote:
Hello, I have a content type eith a related node CCK. I wanna access a create node with an argument telling the nid of the refered node. I tried to apply a php code to the default Value without luck. Something like that:
array(
0 => array('nid' => $args[0
]),
);
Where is the error?
Thank's for all!
Pol Maresma / pol@polnetwork.com PolNetwork.com / Serveis d'Internet msn: marolijo
-- [ Drupal support list | http://lists.drupal.org/ ]