[development] Any drupal experts? -- Passing CCK reference to
another CCK object as an argument
Moshe Weitzman
weitzman at tejasa.com
Wed Jun 28 12:14:54 UTC 2006
try edit[Book]=book1 .... this question is more appropriate for the
prepopulate issue tracker. if noone answers there, try the support forum at
drupal.org.
Srimal Jayawardena wrote:
> tnx
>
> i installed the prepopulate.module and enabled it in admin/modules.
>
> can u give an example on the usage?
>
> for ex:
> i need to pass the value "book1" to the variable 'Book' to when creating
> a review object type . But the following did not work
>
> http://localhost/drupal/?q=node/add/content-review?Book=book1
>
> tnx in advace.
>
> Srimal.
>
>
> On 6/22/06, *Moshe Weitzman* <weitzman at tejasa.com
> <mailto:weitzman at tejasa.com>> wrote:
>
> i thiunk you might need prepopulate.module in order to send that related
> node in the querystring. see http://drupal.org/node/55310
>
> 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.
> >
> >
> >
>
>
More information about the development
mailing list