[development] Any drupal experts? -- Passing CCK reference to another CCK object as an argument

Larry Garfield larry at garfieldtech.com
Thu Jun 22 06:22:54 UTC 2006


I'm not using CCK, but the nodereview module does something similar 
for "normal" nodes.  A nodereview node is not available via node/add, but is 
available to be created/edited via a tab on other nodes, and is dependent 
upon it.  Check how it's doing that, and see if that may help.

On Thursday 22 June 2006 01:08, Srimal Jayawardena wrote:
> Hi
>
> Would anyone know how to pass the reference of one CCK object to another
> CCK object during object creation as an argument?
> (cck = content creation kit)
>
> Ex:
> If i have two cck content types A and B with the following fields.
>
> A ( aid, some field)
> B (bid, aid, somefiled)
>
> so that every B is related to an A.
>
> When creating a new B object, how can I a pass the reference of an existing
> A object (ie an 'aid') via an argument (through the URL)? [ this should
> happen without the user having to enter it manuall -- i.e when the user
> clicks  a particular URL  a chosen aid shuold be passed ]
>
> Tnx in advance
>
> Srimal.

-- 
Larry Garfield			AIM: LOLG42
larry at garfieldtech.com		ICQ: 6817012

"If nature has made any one thing less susceptible than all others of 
exclusive property, it is the action of the thinking power called an idea, 
which an individual may exclusively possess as long as he keeps it to 
himself; but the moment it is divulged, it forces itself into the possession 
of every one, and the receiver cannot dispossess himself of it."  -- Thomas 
Jefferson


More information about the development mailing list