[Zope] Help needed with news articles

Steve Spicklemire steve@spvi.com
Sat, 21 Oct 2000 19:05:44 -0500 (EST)


Hi Taco,

How about something like this:

<dtml-var standard_html_header>
<dtml-let articleList="[]">

<dtml-in "objectValues(['DTML Document'])" sort=bobobase_modification_time>
<dtml-call "articleList.append(_['sequence-item'])">
</dtml-in>

<dtml-in "articleList[-4:]" reverse>
<dtml-var sequence-item>
</dtml-in>

</dtml-let>
<dtml-var standard_html_footer>

>>>>> "Taco" == Taco Scargo <taco@scargo.nl> writes:

    Taco> Unfortunately nobody responded, so I am reposting this
    Taco> question again. I just need a link to an example or
    Taco> explanation.

    Taco> Basically I want to create a page listing the last 4
    Taco> articles from a Zope folder. The articles need a publish
    Taco> from/to field, title and (dtml) text. I somehow need to be
    Taco> able to find and display the article from another dtml
    Taco> document. I read many FAQs and tried working with zcatalogs,
    Taco> but somehow I am not getting there. It is probably not so
    Taco> difficult. If there is somebody how can help me or give me a
    Taco> link to a clear explanation or example I would be very very
    Taco> grateful. Thanks !

    Taco> Taco


    Taco> _______________________________________________ Zope
    Taco> maillist - Zope@zope.org
    Taco> http://lists.zope.org/mailman/listinfo/zope ** No cross
    Taco> posts or HTML encoding!  ** (Related lists -
    Taco> http://lists.zope.org/mailman/listinfo/zope-announce
    Taco> http://lists.zope.org/mailman/listinfo/zope-dev )