Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
Mason Stein
Must velocity be "activated" in a new theme ?
5 dicembre 2012 5.55
Risposta

Mason Stein

Punteggio: New Member

Messaggi: 21

Data di Iscrizione: 5 dicembre 2012

Messaggi recenti

Hey all,

I am creating an own theme for liferay-portal-tomcat-6.1.1-ce-ga2.
But when I write something like "$foreach.count " the html page shows only "$foreach.count .

Do I have to activate something to get this working?
I mean, velocity is running correct because the navigation (#foreach ...) is working...

Many THX!
Bradley Wood
RE: Must velocity be "activated" in a new theme ?
5 dicembre 2012 15.07
Risposta

Bradley Wood

LIFERAY STAFF

Punteggio: Regular Member

Messaggi: 127

Data di Iscrizione: 7 giugno 2010

Messaggi recenti

Use $velocityCount inside of the #foreach to get the index of the current loop
Mason Stein
RE: Must velocity be "activated" in a new theme ?
12 dicembre 2012 6.35
Risposta

Mason Stein

Punteggio: New Member

Messaggi: 21

Data di Iscrizione: 5 dicembre 2012

Messaggi recenti

THX a lot!
I will try this...

But still...where can I find out about what to use and what not?
Bradley Wood
RE: Must velocity be "activated" in a new theme ?
12 dicembre 2012 7.53
Risposta

Bradley Wood

LIFERAY STAFF

Punteggio: Regular Member

Messaggi: 127

Data di Iscrizione: 7 giugno 2010

Messaggi recenti

velocity documentation and liferay API Java docs
Bradley Wood
RE: Must velocity be "activated" in a new theme ?
12 dicembre 2012 9.15
Risposta

Bradley Wood

LIFERAY STAFF

Punteggio: Regular Member

Messaggi: 127

Data di Iscrizione: 7 giugno 2010

Messaggi recenti

- another variable that is helpful within a foreach loop is $velocityHasNext

if that is false then it means you are on the last item