Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
Mason Stein
Must velocity be "activated" in a new theme ?
5. Dezember 2012 05:55
Antwort

Mason Stein

Rang: Junior Member

Nachrichten: 47

Eintrittsdatum: 5. Dezember 2012

Neue Beiträge

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!
Anonym
RE: Must velocity be "activated" in a new theme ?
5. Dezember 2012 15:07
Antwort

Anonym

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. Dezember 2012 06:35
Antwort

Mason Stein

Rang: Junior Member

Nachrichten: 47

Eintrittsdatum: 5. Dezember 2012

Neue Beiträge

THX a lot!
I will try this...

But still...where can I find out about what to use and what not?
Anonym
RE: Must velocity be "activated" in a new theme ?
12. Dezember 2012 07:53
Antwort

Anonym

velocity documentation and liferay API Java docs
Anonym
RE: Must velocity be "activated" in a new theme ?
12. Dezember 2012 09:15
Antwort

Anonym

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

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