computing id and using it to display text from a DTML method
This one has me baffled. I'm creating a "matched set", one DTML document and one DTML method, based on values from a form. Let's say the id of the doc is D22 and the id of the method is M23. How can I symbolically represent the id of the method in the body of the document? I'm not sure this is clear. The result should be that Zope render the document *as if* it said: <!--#var M23 fmt="structured-text"--> Alternatively, how could I create the text within the doc to actually *say* 'M23'? Anyone understand what I'm asking? - Craig -- Craig Allen - Managing Partner - Mutual Alchemy Information Architecture - http://alchemy.nu
On Fri, 21 May 1999, Craig Allen wrote:
This one has me baffled. I'm creating a "matched set", one DTML document and one DTML method, based on values from a form. Let's say the id of the doc is D22 and the id of the method is M23. How can I symbolically represent the id of the method in the body of the document?
I'm not sure this is clear. The result should be that Zope render the document *as if* it said: <!--#var M23 fmt="structured-text"--> Alternatively, how could I create the text within the doc to actually *say* 'M23'?
Anyone understand what I'm asking? - Craig
<!--#var _[somevarwhichjusthappenstoequalM23] fmt="structured-text"--> Untested, YMMV It may need to be <!--#var "_[somevarwhichjusthappenstoequalM23]" fmt="structured-text"--> and of course, it could be more complex <!--#var _[thisvar + thatvar + 'sometext'] fmt="structured-text"--> Hope this helps... and hope I understood what you are asking!
-- Craig Allen - Managing Partner - Mutual Alchemy Information Architecture - http://alchemy.nu
_______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope
(For developer-specific issues, use the companion list, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev ) -- Howard Clinton Shaw III - Grum St. Thomas High School #include "disclaimer.h"
The "_[somevar]" (with the quotes) indirection was just what I was looking for. I had a little trouble initially because somevar had been set to be an int, but it needs to be a string. Thanks!
It may need to be <!--#var "_[somevarwhichjusthappenstoequalM23]" fmt="structured-text"-->
and of course, it could be more complex <!--#var _[thisvar + thatvar + 'sometext'] fmt="structured-text"-->
-- Craig Allen - Managing Partner - Mutual Alchemy Information Architecture - http://alchemy.nu
participants (2)
-
Craig Allen -
Howard Clinton Shaw III