[Zope-dev] TAL, DTML & Folder question

Martin Koekenberg zope at digital-adventures.nl
Thu Nov 6 10:54:02 EST 2003


Hello,

I've the following line in a pagetemplate at the root of my site :

 <span tal:content="structure template/masters/nieuws/homenews"></span>

homenews is a DTML Method with the following code :

  <div align="center" class="titel">Laatste Masters nieuws</div>
  <img src="gfx/tabel/lijn.gif" width="100%" height="2"><br>
	<dtml-in expr="objectValues('DTML Document')" reverse size=3 
sort=id orphan=0>
  <dtml-if Publish>
  <dtml-var Date fmt="%d-%m-%Y">:&nbsp;
  <a href="masters/nieuws/<dtml-var id>/newstemplate"><dtml-var 
title></a><br>
  </dtml-if>
	</dtml-in>

This code has to show the last 3 news items (DTML Document's).
Something is going wrong with a folder or somethin like that because the 
DTML Method show no news items. Mayby because there are no DTML Document 
with the right properties in the root.

How can I tel Tal or the DTML Method to look for the news items in the 
following folder: /masters/nieuws

Who can help me ?




More information about the Zope-Dev mailing list