[Zope] objectValues value for Zdiscussions
Casey Duncan
c.duncan@nlada.org
Thu, 10 Jan 2002 08:52:51 -0500
On Thursday 10 January 2002 07:00 am, BZ allegedly wrote:
> Here is the code I am using on AudiTT.org (http://www.AudiTT.org) for
> the "new classifieds" on the left hand side nav (without all the HTML
> table stuff).
>
> <dtml-in "classifieds.searchResults(in_reply_to=[''])" size="5"
> reverse sort=id start=query_start>
>
> <dtml-if sequence-start>
>
> <dtml-var bobobase_modification_time fmt="%d"> <dtml-var
> bobobase_modification_time fmt="aMonth">
>
> <a target="_top" href="<dtml-var absolute_url>/<dtml-var
> id>"><dtml-var title size="16" missing="(no subject)"></a>
>
> <dtml-if sequence-end>
>
> </dtml-if>
>
> </dtml-in>
>
>
> Cheers,
> BZ
>From what I see here classifieds is a ZCatalog and you are looking for
objects that have an empty in_reply_to. You can substitute <dtml-var getURL>
for <dtml-var absolute_url>/<dtml-var id> which will be more portable.
Why is everything wrapped in the <dtml-var sequence-start> (which is missing
the end tag)? Maybe you just left the end tag off your example. Otherwise
this looks good.
/---------------------------------------------------\
Casey Duncan, Sr. Web Developer
National Legal Aid and Defender Association
c.duncan@nlada.org
\---------------------------------------------------/