[Zope-CMF] How to limit the number of News Items being displayed

Jens Vagelpohl jens@zope.com
Sat, 28 Jul 2001 14:35:43 -0400


add the size argument to your dtml-in. something like...

<dtml-in expr="MethodThatGetsNewsItemsList()" size="5">
   ...
</dtml-in>

jens



On Saturday, July 28, 2001, at 02:04 , Norman Khine wrote:

> Hi,
> Simple I think for those in the know;^)
>
> Can you tell me how to limit the display of the news items to only show 
> the
> latest 5 published news items, anything beyond that to be in the more ...
> .
> link
>
> Cheers
>
> Norman
> zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
> zz/********/z/****\zzz|****\*\zz|*******|z
> z/^^^^^^^^/z/******\zz|*^^^^|*|z|*|^^^^^|z norman khine
> zzzzzz/**/z|**/^^\**|z|*|zzz|*|z|*|zzzzzzz mailto:norman@khine.net
> zzzzz/**/zz|*|zzzz|*|z|****/*/zz|*****|zzz purley
> z/******/zz|*|zzzz|*|z|*|^^zzzzz|*|^^^|zzz UK
> zzZ/**/zzzz|**\^^/**|z|*|zzzzzzz|*|zzzzzzz
> zz/******/zz\******/zz|*|zzzzzzz|*|*****|z
> z/^^^^^^/zzzz\^^^^/zzz|^|zzzzzzz|^^^^^^^|z
> zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
>
>
>
> _______________________________________________
> Zope-CMF maillist  -  Zope-CMF@zope.org
> http://lists.zope.org/mailman/listinfo/zope-cmf
>
> See http://www.zope.org/Products/PTK/Tracker for bug reports and feature 
> requests