Zoping! How do I "get" the Title of a DTML document from another DTML document. What I want is: <a href="nextdoc_html"><dtml-var "title.of.nextdoc_html"></a> ...or something. Ideas? _____________________________________________________ Do You Yahoo!? Ditt_namn@yahoo.se - skaffa en gratis mailadress på http://mail.yahoo.se
How do I "get" the Title of a DTML document from another DTML document.
What I want is: <a href="nextdoc_html"><dtml-var "title.of.nextdoc_html"></a> ...or something.
<dtml-with DocName> <a href="&dtml-id;">&dtml-title;</a> </dtml-with> That should do the trick! -CJ
"Christopher J. Kucera" wrote:
How do I "get" the Title of a DTML document from another DTML document.
What I want is: <a href="nextdoc_html"><dtml-var "title.of.nextdoc_html"></a> ...or something.
<dtml-with DocName> <a href="&dtml-id;">&dtml-title;</a> </dtml-with>
Oops, needs to be quotes around DocName; sorry. And you could do the much-simpler <dtml-var "DocName.title">, too. (Gotta remember to THINK before posting. *DOH!*) -CJ
On Mon, 8 May 2000, [iso-8859-1] Peter Bengtsson wrote:
Zoping!
How do I "get" the Title of a DTML document from another DTML document.
What I want is: <a href="nextdoc_html"><dtml-var "title.of.nextdoc_html"></a> ...or something.
Try: <a href="nextdoc_html"><dtml-var expr="nextdoc_html.title"></a> or: <dtml-with nextdoc_html> <a href="nextdoc_html"><dtml-var title></a> </dtml-with> --Jeff --- Jeff K. Hoffman 704.849.0731 x108 Chief Technology Officer mailto:jeff.hoffman@goingv.com Going Virtual, L.L.C. http://www.goingv.com/
Hi, Peter Peter Bengtsson wrote:
Zoping!
Congratulations!
How do I "get" the Title of a DTML document from another DTML document.
What I want is: <a href="nextdoc_html"><dtml-var "title.of.nextdoc_html"></a> ...or something.
You did not say where nextdoc_html is, but assuming it is on the acquisition path, you might try (tested): <a href="nextdoc_html"> <dtml-with "_.getitem('nextdoc_html')"> <dtml-var title> </dtml-with> </a> -or- <dtml-with "_.getitem('nextdoc_html')"> <a href="<dtml-var id>"><dtml-var title></a> </dtml-with> I prefer the second, because it would lend itself to a list of items better. DTML Documents play by strange rules, and I do not use them much; the _.getitem() trick may not be the only one that works here. hth -- Jim Washington Center for Assessment, Evaluation and Educational Programming Department of Teaching and Learning, Virginia Tech
participants (4)
-
Christopher J. Kucera -
Jeff K. Hoffman -
Jim Washington -
Peter Bengtsson