roller-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave <snoopd...@gmail.com>
Subject Re: More than 100 recent entries?
Date Sat, 04 Sep 2010 15:33:25 GMT
No, there is a fixed limit of 100 in the getRecentWeblogEntries method.

If you use a pager, it is possible to page through all of your blog
entries, i.e. with a next/prev page link on each page, etc.

What is the use case for getting so many entries? Maybe there is
another way to do what you need to do.

- Dave





On Wed, Sep 1, 2010 at 3:04 AM, Matthias Müller-Prove
<matthias.mueller-prove@oracle.com> wrote:
> Hi,
> I wonder if it is possible to display more than 100 recent entries. The following code
just reveals 100 max.
>
> #set($numEntries = 500)
> #set($entriesList = $model.weblog.getRecentWeblogEntries(nil, $numEntries))
> #if($entriesList.size() > 0)
>  <ol>
>  #foreach ($entry in $entriesList)
>    <li><a href="$entry.permalink">$entry.title</a>&nbsp;<sub>$utils.formatDate($entry.pubTime,
"MMM yyyy")</sub></li>
>  #end
>  </ol>
> #else
>  <p class="null">No Entries</p>
> #end
>
> thanks
>  Matthias
>  http://blogs.sun.com/mprove/

Mime
View raw message