-----Original Message----- From: TMGB <bennettt@am.appstate.edu> To: zope@zope.org <zope@zope.org> Date: Friday, September 24, 1999 4:45 PM Subject: [Zope] <dtml-if> question I've never used SQL Methods, but I'm assuming that this works like any other Zope variable... Basically, you need to tell Zope to evaluate an expression, instead of telling Zope to look at a variable. To do this, you either say "<dtml-if expr="add2faq == 'Y'">" or just "<dtml-if "add2faq == 'Y'"> Note the double quotes around the expression.
<td><dtml-if <dtml-var add2faq>='Y'> YES <dtml-else> <form method="get" action="update_add2faq"><input type="checkbox" name="pass_faq" value=<dtml-var ID>><input type="submit" name="add2" value="YES"></form> </dtml-if> </td>
Kevin
Thank you so very much, both versions work. I guess I had worked on it to long earlier I couldn't even type my name right (Thoms). Thomas Kevin Dangoor wrote:
-----Original Message----- From: TMGB <bennettt@am.appstate.edu> To: zope@zope.org <zope@zope.org> Date: Friday, September 24, 1999 4:45 PM Subject: [Zope] <dtml-if> question
I've never used SQL Methods, but I'm assuming that this works like any other Zope variable... Basically, you need to tell Zope to evaluate an expression, instead of telling Zope to look at a variable. To do this, you either say "<dtml-if expr="add2faq == 'Y'">" or just "<dtml-if "add2faq == 'Y'"> Note the double quotes around the expression.
<td><dtml-if <dtml-var add2faq>='Y'> YES <dtml-else> <form method="get" action="update_add2faq"><input type="checkbox" name="pass_faq" value=<dtml-var ID>><input type="submit" name="add2" value="YES"></form> </dtml-if> </td>
Kevin
-- -------------------------------------------------------------------- Rock and Rule Zope Rocks -- http://www.zope.org Python Rules -- http://www.python.org -------------------------------------------------------------------- Thomas McMillan Grant Bennett Appalachian State University Computer Consultant II University Library bennettt@am.appstate.edu http://www.library.appstate.edu/webmaster/ Voice: 828 262 6587 FAX: 828 262 3001 Windows 95 is a 32-bit extension to a 16-bit patch for an 8-bit operating system that was originally coded for a 4-bit microprocessor. - Chris Dunphy Boot Magazine
participants (2)
-
Kevin Dangoor -
TMGB