How can I jump to the next record within IN TAG ? Thanks Anderson
On Thursday 28 December 2000 07:17, Anderson Ami wrote:
How can I jump to the next record within IN TAG ?
Do you mean like a "next" in basic, or "continue" in C? If so, I'm pretty sure there is no such thing, and you just have to synthesize it with dtml-if/dtml-unless tags.
Thanks Anderson
Have a better one, Curtis Maloney
Hi I am trying to pass a variable with the hostname to the smtphost parameter of sendmail: <dtml-var standard_html_header> <dtml-sendmail smtphost="PARENTS[_.len(PARENTS)-1].getProperty('mail_smtphost')"> To: <dtml-var "PARENTS[_.len(PARENTS)-1].getProperty('mail_to')"> From: <dtml-var sendername> <<dtml-var senderaddress>> Subject: <dtml-var subject> <dtml-var comments> </dtml-sendmail> </dtml-let> <dtml-var standard_html_footer> This results in a host not found error. However, when I hardcode the smtphost like: <dtml-sendmail smtphost="192.168.0.20"> This works. I also tried (did not work): <dtml-let myhost="PARENTS[_.len(PARENTS)-1].getProperty('mail_smtphost')"> <dtml-var myhost> <dtml-sendmail smtphost=myhost> I am very sure the property is defined and returns the correct value (tested). What can I do ? Gijs
Gijs Reulen wrote:
<dtml-sendmail smtphost="PARENTS[_.len(PARENTS)-1].getProperty('mail_smtphost')">
The text inside that parameter isn't executed as DTML, it's just used as text :-( (one of the reasons why DTML is being phased out) Why don't you just use a MailHost object? cheers, Chris
participants (4)
-
Anderson Ami -
Chris Withers -
Curtis Maloney -
Gijs Reulen