24 Oct
2002
24 Oct
'02
7:08 p.m.
Alexis Roda writes:
Hello all, I "include" (dtml-var) method A from method B. Is it possible to get B's title and id from A? Inside "A" you can get its id by "document_id".
Inside "A" you cannot get "B"s id or title, unless "B" happens to be the published objects. In this case, "REQUEST.PUBLISHED" is "B" and you can use "REQUEST.PUBLISHED.title" to access its title. Of course, inside "B", you can put "B" title into the DTML namespace and let "A" use it: B: ... <dtml-let B_title=document_title> <dtml-var A> </dtml-let> ... A: ... <dtml-var B_title> ... Dieter