Date index for Feb 2004


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

clickable links to related nodes



Hi all,

I have been playing a bit with Achievo, it looks very useful and well designed. Cheers to all who contributed to it!

So, of course I've started building my own module. And something that struck me was that links between related nodes are not automatically clickable. To keep it pizza-style, let's say a pizza has one cook who is responsible for it. If I add a relation to the pizza class like this:

$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. How do I do it?

Cheers,
Aron

PS a search function for the mailing lists would be handy to make sure I'm not asking things that have already been asked and answered!


http://www.achievo.org/lists achievo.org - ©1999-2002 ibuildings.nl BV