Thank you Dieter - I have just about all of it working thanks to your suggestions and the references on your website! Still stuck on getting a dtml-if inside a dtml-with...only block to work inside a dtml-in loop without cancelling the sort order of the dtml loop and without acquiring. Other than this, the syntax is working fine. Thanks, Gary ----- Original Message ----- From: "Dieter Maurer" <dieter@handshake.de> To: "Gary Speer" <gspeer@cortech.org> Cc: <zope@zope.org> Sent: Tuesday, November 12, 2002 12:35 PM Subject: Re: [Zope] Newbie Question - DTML syntax for referencing files with extensions Gary Speer writes:
I've been through the books and searched howtos, but can't find the trick.
In short, I'm looking for the sytax to use to reference a file name that has an extension so that the extension is treated as a continuation of the filename and not treated as an attribute of a resulting non-existant object due to truncating the extension.
Depending on how you want to use it: <dtml-var image.gif> <dtml-var "_.getitem('image.gif')"> <dtml-var "_['image.gif']"> <dtml-var "_.getattr(someObject,'image.gif')"> <dtml-var "someFolder['image.gif']">
I am also trying to manage acquisition selectively Search the mailing list archives for "aq_explicit" or "aq_base".
BTW, your code is very difficult to read. You might consider indentation to improve readability. You should read about the effect of "dtml-with" (e.g. in <http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html> ). Apparently, your current conception is not right. Dieter