Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Mika Koivisto
FreeMarker Journal Template / Theme support
April 28, 2008 5:33 AM
Answer

Mika Koivisto

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1501

Join Date: August 7, 2006

Recent Posts

Just doing a preliminary poll if there is any interest in FreeMarker template support for Journal Templates and Themes.

FreeMarker is a template engine similar to Velocity except it is much better written and more developer friendly. Instead of throwing absurd exceptions or silently eating template errors FreeMarker reports whats wrong and on which line of the template.

I've had really good experiences with FreeMarker and it's performance. In the company I work for we prefer FreeMarker over Velocity and it would be great to add support for FreeMarker templates to Liferay.

For more information about FreeMarker visit http://www.freemarker.org/
Ray Augé
RE: FreeMarker Journal Template / Theme support
April 28, 2008 6:01 AM
Answer

Ray Augé

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1171

Join Date: February 7, 2005

Recent Posts

Hey Mika,

Not to take away from your poll in any way. We're using freemarker in Liferay already, so I don't think the request is too much of a stretch.

BUT, you might be interested in the fact that we just added support for (in trunk) error output to Journal Templates from either XSL or VM.

Here are a couple snaps of what it looks like.

What do you think? It would be pretty trivial to extend this to the current theme processing logic as well, to dump this type of useful output.
Attachment

Attachment

Attachments: img-4a.png (39.4k), img-4b.png (29.8k)
Ray Augé
RE: FreeMarker Journal Template / Theme support
April 28, 2008 6:05 AM
Answer

Ray Augé

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1171

Join Date: February 7, 2005

Recent Posts

Also, the errors outputs are themselves driven by xsl or vtl template which are customizable through portal.properties.
Mika Koivisto
RE: FreeMarker Journal Template / Theme support
April 28, 2008 10:51 AM
Answer

Mika Koivisto

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1501

Join Date: August 7, 2006

Recent Posts

Ray Augé:
Not to take away from your poll in any way. We're using freemarker in Liferay already, so I don't think the request is too much of a stretch.


I know that ServiceBuilder was switched to using FreeMarker and I know it's fairly simple to add new template engine to both Journal and Themes.

Ray Augé:
What do you think? It would be pretty trivial to extend this to the current theme processing logic as well, to dump this type of useful output.


Great. That's really handy. I'm sure Web Designers who create themes would appreciate that too.
Gabriel Gaudina
RE: FreeMarker Journal Template / Theme support
April 6, 2011 1:36 PM
Answer

Gabriel Gaudina

Rank: New Member

Posts: 4

Join Date: April 6, 2011

Recent Posts

Hi Mika.
I'm new in Liferay.
I would like to know some url where to get freemarker examples on custom theme development (something like change portal_normal view or the order of components)
In adition, there is a spanish liferay forum?

Thanks in advance.
Sorry for my english.
Mika Koivisto
RE: FreeMarker Journal Template / Theme support
April 6, 2011 1:43 PM
Answer

Mika Koivisto

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1501

Join Date: August 7, 2006

Recent Posts

Hi Gabriel,

From the Docs & Resource you can find official Liferay documentation. Here's a link to the section about theme development.

If you need help in Spanish you can ask questions in the spanish section of Liferay forums.