掲示板

FreeMarker Journal Template / Theme support

thumbnail
16年前 に Mika Koivisto によって更新されました。

FreeMarker Journal Template / Theme support

Liferay Legend 投稿: 1519 参加年月日: 06/08/07 最新の投稿
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/
thumbnail
16年前 に Ray Augé によって更新されました。

RE: FreeMarker Journal Template / Theme support

Liferay Legend 投稿: 1197 参加年月日: 05/02/08 最新の投稿
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.
thumbnail
16年前 に Ray Augé によって更新されました。

RE: FreeMarker Journal Template / Theme support

Liferay Legend 投稿: 1197 参加年月日: 05/02/08 最新の投稿
Also, the errors outputs are themselves driven by xsl or vtl template which are customizable through portal.properties.
thumbnail
16年前 に Mika Koivisto によって更新されました。

RE: FreeMarker Journal Template / Theme support

Liferay Legend 投稿: 1519 参加年月日: 06/08/07 最新の投稿
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.
13年前 に Gabriel Gaudina によって更新されました。

RE: FreeMarker Journal Template / Theme support

New Member 投稿: 4 参加年月日: 11/04/06 最新の投稿
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.
thumbnail
13年前 に Mika Koivisto によって更新されました。

RE: FreeMarker Journal Template / Theme support

Liferay Legend 投稿: 1519 参加年月日: 06/08/07 最新の投稿
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.