Mika Koivisto 13年 前 Should also mention that you need to have Liferay 6.0 and GA3 works the best as the earlier versions had some bugs. 投票するためにはログインが必要です。 次として送信する: キャンセル Igor Spasić Mika Koivisto 13年 前 10x, updated! 投票するためにはログインが必要です。 次として送信する: キャンセル
Marcelo Ruiz Camauër 13年 前 What are the main advantages of one or the other? 投票するためにはログインが必要です。 次として送信する: キャンセル Igor Spasić Marcelo Ruiz Camauër 13年 前 Velocity tends to be 'plan and simple' template language and it can work well. It is an old project, has a large community, code is fast enough, and the syntax is easy and fixed. Sometimes, this is a right thing.Freemarker, on the other hand, has much more power inside. It is more complete as template language, has good documentation, API, has more advance template syntax, supports JSP taglibs, has advance macro system (libs, default params...), less dependencies... You can also check what FM authors says about it: http://freemarker.sourceforge.net/fmVsVel.htmlPlease note that I am talking here about features, but are they advantage or not... it is for you to decide;) 投票するためにはログインが必要です。 次として送信する: キャンセル Jakub Liska Igor Spasić 13年 前 Hey Igor,do you have any idea where the *.vm velocity templates gets the $init variable they are #parsing ? Because in the classic html template there is only init.ftl currently...I grepped through the entire html directory and the $init variable is not declared anywhere 投票するためにはログインが必要です。 次として送信する: キャンセル Igor Spasić Jakub Liska 13年 前 Class com.liferay.portal.velocity.VelocityVariables creates 'init' variable (line #466; or just search for "init" - with quotation marks).The init.vm file is located here: tomcat-6.0.29\webapps\ROOT\html\themes\_unstyled\templates\init.vmI hope this helps you 投票するためにはログインが必要です。 次として送信する: キャンセル Jakub Liska Igor Spasić 13年 前 Thanks Igor. I was searching for '$init' withing the .vm templates, it didn't occur to me it was initialized already in VelocityVariables. Cheers 投票するためにはログインが必要です。 次として送信する: キャンセル
Igor Spasić Marcelo Ruiz Camauër 13年 前 Velocity tends to be 'plan and simple' template language and it can work well. It is an old project, has a large community, code is fast enough, and the syntax is easy and fixed. Sometimes, this is a right thing.Freemarker, on the other hand, has much more power inside. It is more complete as template language, has good documentation, API, has more advance template syntax, supports JSP taglibs, has advance macro system (libs, default params...), less dependencies... You can also check what FM authors says about it: http://freemarker.sourceforge.net/fmVsVel.htmlPlease note that I am talking here about features, but are they advantage or not... it is for you to decide;) 投票するためにはログインが必要です。 次として送信する: キャンセル Jakub Liska Igor Spasić 13年 前 Hey Igor,do you have any idea where the *.vm velocity templates gets the $init variable they are #parsing ? Because in the classic html template there is only init.ftl currently...I grepped through the entire html directory and the $init variable is not declared anywhere 投票するためにはログインが必要です。 次として送信する: キャンセル Igor Spasić Jakub Liska 13年 前 Class com.liferay.portal.velocity.VelocityVariables creates 'init' variable (line #466; or just search for "init" - with quotation marks).The init.vm file is located here: tomcat-6.0.29\webapps\ROOT\html\themes\_unstyled\templates\init.vmI hope this helps you 投票するためにはログインが必要です。 次として送信する: キャンセル Jakub Liska Igor Spasić 13年 前 Thanks Igor. I was searching for '$init' withing the .vm templates, it didn't occur to me it was initialized already in VelocityVariables. Cheers 投票するためにはログインが必要です。 次として送信する: キャンセル
Jakub Liska Igor Spasić 13年 前 Hey Igor,do you have any idea where the *.vm velocity templates gets the $init variable they are #parsing ? Because in the classic html template there is only init.ftl currently...I grepped through the entire html directory and the $init variable is not declared anywhere 投票するためにはログインが必要です。 次として送信する: キャンセル Igor Spasić Jakub Liska 13年 前 Class com.liferay.portal.velocity.VelocityVariables creates 'init' variable (line #466; or just search for "init" - with quotation marks).The init.vm file is located here: tomcat-6.0.29\webapps\ROOT\html\themes\_unstyled\templates\init.vmI hope this helps you 投票するためにはログインが必要です。 次として送信する: キャンセル Jakub Liska Igor Spasić 13年 前 Thanks Igor. I was searching for '$init' withing the .vm templates, it didn't occur to me it was initialized already in VelocityVariables. Cheers 投票するためにはログインが必要です。 次として送信する: キャンセル
Igor Spasić Jakub Liska 13年 前 Class com.liferay.portal.velocity.VelocityVariables creates 'init' variable (line #466; or just search for "init" - with quotation marks).The init.vm file is located here: tomcat-6.0.29\webapps\ROOT\html\themes\_unstyled\templates\init.vmI hope this helps you 投票するためにはログインが必要です。 次として送信する: キャンセル Jakub Liska Igor Spasić 13年 前 Thanks Igor. I was searching for '$init' withing the .vm templates, it didn't occur to me it was initialized already in VelocityVariables. Cheers 投票するためにはログインが必要です。 次として送信する: キャンセル
Jakub Liska Igor Spasić 13年 前 Thanks Igor. I was searching for '$init' withing the .vm templates, it didn't occur to me it was initialized already in VelocityVariables. Cheers 投票するためにはログインが必要です。 次として送信する: キャンセル