[Tb] agents for news section

From: Mark Smith <mark__AT__bbprojects.net>
Date: Mon Jan 24 2005 - 07:44:58 EST

Benoit Pointet wrote:

>> 2. "Recent News" : Should gather a specified number (probably 3 to 6)=20
>> of the newest additions to "Posts". (The titles and creation dates of=20
>> these will be displayed as a list in the "Recent News" page.)
>
>query: #inside(Posts)
>sort by: Created
>
>in "News", or its template, specifiy:
>^justChildren(recentnewstemplate,3) to export the 3 most recent posts=20
>(not sure of that)
>
>> 3. "Category" : Should gather all entries in Posts with "category"=20
>> attribute contents =3D to the name of the note (e.g. Category A). (These=
=20
>> will be displayed on the individual category pages in the same way as=20
>> entries are listed on the "Recent News" page.
>>
>> (I can solve an easy variant of this one if I make an agent=20
>> per category (as you would hope), but I'm looking for a general agent=20
>> that collects notes with category attribute contents equal to its own=20
>> name (if you see what I mean).)
>>
>
>query: #inside(Posts)&category=3D^title(this)

thanks for this Benoit,

mark.
Received on Mon Jan 24 12:44:58 2005

This archive was generated by hypermail 2.1.8 : Wed Dec 14 2005 - 10:45:38 EST