Date index for Feb 2004
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [achievo] clickable links to related nodes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
Aron van Ammers wrote:
> $this->add(new atkManyToOneRelation("responsiblecook",
> "employee.employee",
> "id",
> AF_OBLIGATORY|
> AF_RELATION_AUTOLINK));
>
> ... then I would say it's sensible if in the pizza view, the name of the
> cook is clickable, and if I click it I get to his/her employee view
> page. But if I use this code, it doesn't.
That's because the "id" param is wrong here, atkManyToOneRelation only
has 3 params. Flags are the third. If you strip the id out from between,
the links will work.
By the way, this typ of mails are better posted on the developers list
(http://enigmail.mozdev.org
iD8DBQFAMGON0a30MCVqs1wRAo42AJ0V8iXSscNiDxybuLfISplouBw9WQCfaBR2
jJETzR/fZvCEt4EQxQZ7n7E=
=UNAL
-----END PGP SIGNATURE-----