Forums

Home » Liferay IDE » English

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
zaheer mohammed saddapalli
What is the use of *.flt files in classic theme of Liferay 6?
August 5, 2010 11:28 PM
Answer

zaheer mohammed saddapalli

Rank: Regular Member

Posts: 164

Join Date: January 15, 2008

Recent Posts

Hi All,

I am trying to explore Liferay 6 theme part. I find many *ftl files in classic theme template folder. Here the files

  1. init.ftl
  2. init_custom.ftl
  3. navigation.ftl
  4. portal_normal.ftl
  5. portlet.ftl


Here i would like to know the purpose of those ftl files

With Regards,
S Mohammed Zaheer
Sandeep Nair
RE: What is the use of *.flt files in classic theme of Liferay 6?
August 5, 2010 11:41 PM
Answer

Sandeep Nair

Rank: Liferay Legend

Posts: 1721

Join Date: November 5, 2008

Recent Posts

Its the extension for a template language called freemarker, just as vm is for velocity. Apparently liferay 6 also supports freemarker along with velocity.

http://www.liferay.com/community/forums/-/message_boards/message/4721160

Regards,
Sandeep
zaheer mohammed saddapalli
RE: What is the use of *.flt files in classic theme of Liferay 6?
August 5, 2010 11:54 PM
Answer

zaheer mohammed saddapalli

Rank: Regular Member

Posts: 164

Join Date: January 15, 2008

Recent Posts

I know freemarker template language.

Let me explan in detail. There are bith Velocity Template and Freemarker Template file available in templates folder of classic theme in Liferay 6.

Why both?


With Regards,
Mohammed Zaheer
Sandeep Nair
RE: What is the use of *.flt files in classic theme of Liferay 6?
August 5, 2010 11:56 PM
Answer

Sandeep Nair

Rank: Liferay Legend

Posts: 1721

Join Date: November 5, 2008

Recent Posts

Check out the link that i gave b4, in one of the replies its said that support is given for both, and by default velocity is enabled, i guess there must be some property file which when set, begins to use freemarker

Regards,
Sandeep
zaheer mohammed saddapalli
RE: What is the use of *.flt files in classic theme of Liferay 6?
August 6, 2010 12:08 AM
Answer

zaheer mohammed saddapalli

Rank: Regular Member

Posts: 164

Join Date: January 15, 2008

Recent Posts

Excellent feature ....

Here are the setting to use Freemarker Template Language

I have changed template-extion from vm to ftl for enabling Freemarker Templates Language in theme part.

1
2<theme id="classic" name="Classic">
3        <root-path>/html/themes/classic</root-path>
4        <templates-path>${root-path}/templates</templates-path>
5        <images-path>${root-path}/images</images-path>
6    [b]    <template-extension>ftl</template-extension>[/b]



Thank you Sandeep...

With Regards,
S Mohammed Zaheer
Sandeep Nair
RE: What is the use of *.flt files in classic theme of Liferay 6?
August 6, 2010 12:09 AM
Answer

Sandeep Nair

Rank: Liferay Legend

Posts: 1721

Join Date: November 5, 2008

Recent Posts

Thanks for sharing that one zaheer
Sushil Saini
RE: What is the use of *.flt files in classic theme of Liferay 6?
December 1, 2012 6:36 PM
Answer

Sushil Saini

Rank: Regular Member

Posts: 104

Join Date: July 27, 2011

Recent Posts

zaheer mohammed saddapalli:
Excellent feature ....

Here are the setting to use Freemarker Template Language

I have changed template-extion from vm to ftl for enabling Freemarker Templates Language in theme part.

1
2<theme id="classic" name="Classic">
3        <root-path>/html/themes/classic</root-path>
4        <templates-path>${root-path}/templates</templates-path>
5        <images-path>${root-path}/images</images-path>
6    [b]    <template-extension>ftl</template-extension>[/b]



Thank you Sandeep...

With Regards,
S Mohammed Zaheer

Thanks Zaheer for posting this helpful information ...!!