<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-2">
<META content="MSHTML 6.00.6000.16587" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=296433013-18122007>What I mean is, on a node view place a link for 
registered user that points for example&nbsp;to 
node/add/ctype/21</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=296433013-18122007>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.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=296433013-18122007></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=296433013-18122007>Is it possible? I&nbsp;know how to place the link, but 
not how to get the "21" argument and place it on the node/add&nbsp;cck input 
field.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=296433013-18122007></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=296433013-18122007>Thank's for all.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=296433013-18122007></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=296433013-18122007></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left>
<HR tabIndex=-1>
</DIV>
<DIV dir=ltr align=left><FONT face=Tahoma size=2><B>De:</B> 
support-bounces@drupal.org [mailto:support-bounces@drupal.org] <B>En nombre de 
</B>khurram fraz<BR><B>Enviado el:</B> dimarts, 18 / desembre / 2007 
14:08<BR><B>Para:</B> support@drupal.org<BR><B>Asunto:</B> Re: [support] Create 
node with argument?<BR></FONT><BR></DIV>
<DIV></DIV>can u please provide code.... so that i can help u better<BR><BR>
<DIV class=gmail_quote>On Dec 13, 2007 4:31 PM, Marolijo - Pol maresma &lt;<A 
href="mailto:marolijo@yahoo.es">marolijo@yahoo.es</A>&gt; wrote:<BR>
<BLOCKQUOTE class=gmail_quote 
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
  <DIV>
  <DIV><SPAN><FONT face=Arial size=2>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. </FONT></SPAN></DIV>
  <DIV><SPAN><FONT face=Arial size=2>I tried to apply a php code to the 
  default&nbsp;Value without luck.</FONT></SPAN></DIV>
  <DIV><SPAN><FONT face=Arial size=2>Something like that:</FONT></SPAN></DIV>
  <DIV><SPAN><PRE>array(
  0 =&gt; array('nid' =&gt; <SPAN style="COLOR: rgb(0,0,0)"><SPAN style="COLOR: rgb(0,0,187)">$args</SPAN><SPAN style="COLOR: rgb(0,119,0)">[</SPAN><SPAN style="COLOR: rgb(0,0,187)">0</SPAN><SPAN style="COLOR: rgb(0,119,0)">
]</SPAN></SPAN>),
);</PRE></SPAN></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><SPAN><FONT face=Arial size=2>Where is the error?</FONT></SPAN></DIV>
  <DIV><SPAN><FONT face=Arial size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN><FONT face=Arial size=2>Thank's for all!</FONT></SPAN></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV align=left><FONT face=Arial size=2>Pol Maresma / <A 
  href="mailto:pol@polnetwork.com" 
  target=_blank>pol@polnetwork.com</A>&nbsp;</FONT></DIV>
  <DIV align=left><FONT face=Arial size=2>PolNetwork.com / Serveis 
  d'Internet</FONT></DIV>
  <DIV align=left><FONT face=Arial size=2>msn: marolijo</FONT></DIV>
  <DIV>&nbsp;</DIV></DIV><BR>--<BR>[ Drupal support list | <A 
  href="http://lists.drupal.org/" target=_blank>http://lists.drupal.org/</A> 
  ]<BR></BLOCKQUOTE></DIV><BR><BR clear=all><BR>-- <BR><BR>Best 
Regards<BR><BR>Khurram Fraz<BR>Software Engineer <BR>PROSOL 
Technology,<BR>PiSigma Group,<BR>Evacue Trust<BR>Islamabad 
44000<BR>__________________________ <BR>È+92-345-5126446 </BODY></HTML>