hi, i have objects and subobjects (in classes) that i want to index. let's say i have this structure : folderA itemA sub itemB sub itemC sub itemD sub i want to get some propertie from "itemX" if some propertie of "sub" equals something. to make it more clear (propertis are enclosed in parenthesis) books bookname1 (description) review (author) bookname2 (description) review (author) bookname3 (description) review (author) bookname4 (description) review (author) i want to get the "description" of the book whose reviews's author is "author" ? hu... clear ? thanx, JUNK
Hello,
i want to get some propertie from "itemX" if some propertie of "sub" equals something.
to make it more clear (propertis are enclosed in parenthesis)
books bookname1 (description) review (author) bookname2 (description) review (author) bookname3 (description) review (author) bookname4 (description) review (author)
i want to get the "description" of the book whose reviews's author is "author" ? hu... clear ?
You can use nested dtml-ins to iterate over your objects, then dtml-var to display their properties. for example: <dtml-in expr="objectValues(['Folder'])"> <dtml-var name="description"> <dtml-in expr="objectValues(['Folder'])"> <dtml-var name="author"> </dtml-in> </dtml-in> Hope that helps, Jake -- Jake Berglund <jwb@imeme.net> Online Community Building http://imeme.net - Affordable Zope Webhosting
Hi Junk, (?) try to get your fingers on ZCatalog. Its not so hard as it appears at first and can do what you want here. Regards Tino Wildenhain --On Montag, 7. Mai 2001 04:42 +0200 Junk <junk@gargl.net> wrote:
hi,
i have objects and subobjects (in classes) that i want to index.
let's say i have this structure :
folderA itemA sub itemB sub itemC sub itemD sub
i want to get some propertie from "itemX" if some propertie of "sub" equals something.
to make it more clear (propertis are enclosed in parenthesis)
books bookname1 (description) review (author) bookname2 (description) review (author) bookname3 (description) review (author) bookname4 (description) review (author)
i want to get the "description" of the book whose reviews's author is "author" ? hu... clear ?
thanx,
JUNK
_______________________________________________ Zope maillist - Zope@zope.org 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 )
participants (3)
-
Jake Berglund -
Junk -
Tino Wildenhain