Tuesday 27 January 2004 11:22:04 am
Not with the current keyword datatype. There are new fetch functions for keywords (3.3-2) which you could use and where you can omit a class to fetch all objects of all classes sharing a specific keyword (or even the first x letters). It's used in the pdf template functions and I used it to build a keyword index where each keyword is listed with all objects. It is obviously more powerful than $node.object.data_map.keywords.content.related_objects syntax like
{let kwlist=fetch(content,keyword, hash('alphabet',<part or whole keyword>, {*required*}
'classid',<class id>, {*optional, integer*}
'offset',<offset>, {*optional, integer*}
'limit',<limit> {*optional, integer*}
)}
It returns a weird array with if you loop over it: $kwlist:item.keyword is available only once (facilitating output formatting) and $kwlist:item.link_object has the structure for displaying/linking Do an {$kwlist:item|attribute(show,2)} and see for yourself. A more extended example will be in "the book". -paul
eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans
|