aq_explicit only and DTML Document
Let me try this again. There has got to be an explanation and/or workaround for this. I am beating my head up against the wall. Given a DTML Method that spits out a folder index that is acquired by subfolders with the following code: <dtml-in expr="objectValues('DTML Document')"> <p><dtml-var id>: <dtml-var meta_type> (<dtml-var summary missing="">)</p> </dtml-in> Well, this mostly works but acquires summary from the containing folder or above if it is not set on the document. So I try <dtml-in expr="objectValues('DTML Document')"> <p><dtml-var id>: <dtml-with aq_explicit> <dtml-var meta_type> (<dtml-var summary missing="">) </dtml-with></p> </dtml-in> Same problem. So I now try <dtml-in expr="objectValues('DTML Document')"> <p><dtml-var id>: <dtml-with aq_explicit only> <dtml-var meta_type> (<dtml-var summary missing="">) </dtml-with></p> </dtml-in> and I get a KeyError. Apparently aq_explicit is empty inside a DTML Document? If I expand objectValues to include some of my other content types (File, Folder, etc.) 'aq_explicit only' works as expected. Anyone have any clue what gives here? -- Matt Behrens <matt.behrens@kohler.com> System Analyst, Baker Furniture
Behrens Matt - Grand Rapids wrote:
<dtml-in expr="objectValues('DTML Document')"> <p><dtml-var id>: <dtml-with aq_explicit only> <dtml-var meta_type> (<dtml-var summary missing="">) </dtml-with></p> </dtml-in>
I should mention that I know meta_type doesn't need to be in aq_explicit only, but I was trying to figure out what type of object aq_explicit only was looking at. Either way, it shouldn't matter... -- Matt Behrens <matt.behrens@kohler.com> System Analyst, Baker Furniture
On Thursday 18 October 2001 02:46 pm, Behrens Matt - Grand Rapids allegedly wrote:
Let me try this again. There has got to be an explanation and/or workaround for this. I am beating my head up against the wall.
Given a DTML Method that spits out a folder index that is acquired by subfolders with the following code:
<dtml-in expr="objectValues('DTML Document')"> <p><dtml-var id>: <dtml-var meta_type> (<dtml-var summary missing="">)</p> </dtml-in>
[snip]
Anyone have any clue what gives here?
Try: <dtml-in expr="objectValues('DTML Document')"> <p><dtml-var id>: <dtml-var meta_type> (<dtml-var expr="getProperty('summary','')">)</p> </dtml-in> hth, /---------------------------------------------------\ Casey Duncan, Sr. Web Developer National Legal Aid and Defender Association c.duncan@nlada.org \---------------------------------------------------/
Casey Duncan wrote:
Try:
<dtml-in expr="objectValues('DTML Document')"> <p><dtml-var id>: <dtml-var meta_type> (<dtml-var expr="getProperty('summary','')">)</p> </dtml-in>
Cool, that works. Thanks. It is rather odd that the aq_explicit only case doesn't, though... shrug, I guess. -- Matt Behrens <matt.behrens@kohler.com> System Analyst, Baker Furniture
participants (2)
-
Behrens Matt - Grand Rapids -
Casey Duncan