Dennis Nichols wrote:
>
> At 9/15/00 10:05 AM, Chris Withers wrote:
> >So:
> >
> ><dtml-var "restrictedTraverse('slash/delimited/path')" absolute_url>
> >
> >will work as I expect it to?
>
> Well, I don't know what you expect :-) When I try to save such a construct
> with the handy-dandy Change button I get
>
> Document Template Parse Error
> Invalid attribute name, "absolute_url", for tag <dtml-var
> "restrictedTraverse(choice)" absolute_url> ...
Yeah. That's right. There is no attrubute absolute_url.
There is, however, a method absolute_url().
This should do what you expect:
<dtml-var "restrictedTraverse('slash/delimited/path').absolute_url()">
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net
_______________________________________________
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )