newbie: get properties
Hello all, I "include" (dtml-var) method A from method B. Is it possible to get B's title and id from A? A method: The title is: <dtml-var ???????> B method <dtml-var standard_html_header> <dtml-var A> <dtml-var stnadard_html_footer> TIA Regards -- //// (@ @) ---------------------------oOO----(_)----OOo------------------------ Los pecados de los tres mundos desapareceran conmigo. Alexis Roda - Universitat Rovira i Virgili - Reus, Tarragona (Spain) --------------------------------------------------------------------
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
participants (2)
-
Alexis Roda -
Dieter Maurer