Didier Georgieff wrote:
Hello,
* I have 2 Folders (Yihaw ZClass instances) * both folders have News objects (cataloged)
I put the news on the front page via (this is taken from Yihaw, simplified for the demonstation, but still have the problem) this code
<dtml-in "Catalog( meta_type='Yihaw News Item', sort_on='bobobase_modification_time', sort_order='reverse')" size=30 start=query_start>
<dtml-with "Catalog.getobject(data_record_id_)"> <dtml-var absolute_url html_quote> - <dtml-var title_or_id html_quote><br> </dtml-with>
</dtml-in>
Problem is that some news items are OK and some raise an exeption on <dtml-var title_or_id> told to be missing (!!??)
It puzzle me because all news items are same ZClass instance and can be accesed normally via the zope interface, or directly, works well on view etc ...
Did you index title_or_id in the catalog? When you do a search on a catalog, you only have the variables that you indexed available, as you are working out of the catalog, not the actual object. Bill