Hello,
i've indexed some dtml-documents with some metadata,
for example a CPU field.
I can search for a CPU or any other metadata, but
how i can have the list of all the objects with a CPU
property?
Thanks,
Bruno
__
Do
Hi,
I'm trying to search a catalog and return a list of hits,
and here is a code fragment:
dtml-in Catalog
a href="dtml-var "Catalog.getpath(data_record_id_)""
dtml-var title
/a
dtml-var idbr
/dtml-in
This works ok, however, I understand that the catalog search
does not actually return
Leonard Chan wrote:
I'd like to include some attributes from the actual objects
(maybe by accessing the actual object via id, etc?) in the
result list.
You can get the actual object with:
Catalog.getobject(data_record_id_) inside your dtml-in loop.
This is supposedly a 'bad' thing to do but
Leonard Chan wrote:
This is supposedly a 'bad' thing to do but there's nothing better right now...
Why is this a 'bad' thing? 'Cause it requires loading the whole object?
Nope, 'cos it doesn't work with anything that plays with traversal, like
SiteAccess. Something better should be coming