[Zope] One last request
I have one unsolved mystery left. What I am trying to do is print the titles from the DTML Documents in the 'artikelen' folder (and actually another property called 'inleiding'. I believe the code below should do this, but it does not work. It returns 'Zope' instead of the title. If I use the 'inleiding' property it reports that it does not exist. If I just use sequence-item it returns the complete item ok. Any clues ? Thanks, Taco http://www.gezondheidskrant.nl:8080/mainframe : dtml-let articleList="[]" dtml-in "artikelen.objectValues(['DTML Document'])" sort=publiceren_vanaf dtml-call "articleList.append(_['sequence-item'])" /dtml-in dtml-in "articleList[-4:]" reverse dtml-let theDocument=sequence-item dtml-var "theDocument.title" dtml-var "theDocument.inleiding" /dtml-let /dtml-in /dtml-let ___ 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 )
Re: [Zope] One last request
Taco Scargo wrote: I have one unsolved mystery left. What I am trying to do is print the titles from the DTML Documents in the 'artikelen' folder (and actually another property called 'inleiding'. I believe the code below should do this, but it does not work. It returns 'Zope' instead of the title. If I use the 'inleiding' property it reports that it does not exist. If I just use sequence-item it returns the complete item ok. Any clues ? Thanks, Taco http://www.gezondheidskrant.nl:8080/mainframe : dtml-let articleList="[]" dtml-in "artikelen.objectValues(['DTML Document'])" sort=publiceren_vanaf dtml-call "articleList.append(_['sequence-item'])" /dtml-in dtml-in "articleList[-4:]" reverse dtml-let theDocument=sequence-item dtml-var "theDocument.title" dtml-var "theDocument.inleiding" /dtml-let /dtml-in /dtml-let try this instead dtml-in "artikelen.objectValues(['DTML Document'])" sort=publiceren_vanaf size=4 reverse dtml-var title dtml-var inleiding /dtml-in kapil ___ 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 )
Re: [Zope] One last request
I have one unsolved mystery left. What I am trying to do is print the titles from the DTML Documents in the 'artikelen' folder (and actually another property called 'inleiding'. I believe the code below should do this, but it does not work. It returns 'Zope' instead of the title. If I use the 'inleiding' property it reports that it does not exist. If I just use sequence-item it returns the complete item ok. Any clues ? Thanks, Taco http://www.gezondheidskrant.nl:8080/mainframe : dtml-let articleList="[]" dtml-in "artikelen.objectValues(['DTML Document'])" sort=publiceren_vanaf dtml-call "articleList.append(_['sequence-item'])" /dtml-in dtml-in "articleList[-4:]" reverse dtml-let theDocument=sequence-item dtml-var "theDocument.title" dtml-var "theDocument.inleiding" /dtml-let /dtml-in /dtml-let instead, try this: dtml-in "artikelen.objectValues(['DTML Document'])" sort=publiceren_vanaf dtml-comment THIS actually 'calls' sequence-item dtml-call "articleList.append(_['sequence-item'])" /dtml-comment dtml-call "articleList.append(_.getitem('sequence-item',0))" /dtml-in dtml-in "articleList[-4:]" reverse dtml-let theDocument="_.getitem('sequence-item',0)" dtml-var "theDocument.title" dtml-var "theDocument.inleiding" /dtml-let /dtml-in Mark ___ 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 ) ___ 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 )