roller-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Jones" <fudgemon...@gmail.com>
Subject Re: _day.vm template question
Date Thu, 02 Aug 2007 10:08:04 GMT
Hi Gene,

Not 100% sure if this will work, but when the _day template is parsed
you may be able to get the loop index using the built-in velocity
"$velocityCount" variable, see:

http://velocity.apache.org/engine/devel/user-guide.html#loops

HTH,

Richard


On 01/08/07, Evgeniy Strokin <evgeniy.strokin@yahoo.com> wrote:
> Hello,
> Some times I need to know how many times _day.vm template was called already.
> Is any way to get this number?
> For example, I have a blog which has 5 days on the first page displayed. In each day
I have 2 posts.
> Let's say I need to display posts of the latest day (on the top) in diferent color, and
all others in other color.
> How can I do this?
>
> Thank you,
> Gene

Mime
View raw message