[Zope] newbie-dtml

Geir B Hansen geirh@funcom.com
Mon, 27 Sep 1999 16:39:37 +0200


For a news-page i need to dynamically deliver a snippet (say the first
200 letters or so) of the latest updated document in my
"newsarchive"-folder.

Initerating through the folder and finding the document, and displaying
a link to it works like a dream, but how do i reference the content of
the DTML-document ?
I can extract properties, but how do i get to the content itself ??


Looks like this at the present :

<!--#in "['Document','DTML Document']"-->
<!--#with newsarchive-->
<!--#if "objectValues(_['sequence-item'])"-->

<!--#in "objectValues(_['sequence-item'])"
sort=bobobase_modification_time reverse size=1 orphan=0-->

<dtml-comment>
***
insert extract from latest news-item-here!!
***
</dtml-comment>



<A HREF="newsarchive/<!--#var title_or_id-->"><!--#var
title_or_id--></A>

<!--#/in-->
<!--#/if-->
<!--#/with-->
<!--#/in-->



thanks
------------------------------------------------
          Geir B Hansen
      geirh@funcom.com
Web-designer / Graphic artist
          Funcom Oslo
------------------------------------------------