roller-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Jones" <>
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:



On 01/08/07, Evgeniy Strokin <> 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

View raw message