You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Hemanth Kumar Kanamarlapudi <he...@mindtree.com> on 2010/04/01 14:53:51 UTC
Help required in ftl
Hi All,
I need a help regarding ftl.
I need to include an ftl file dynamically if it is available or else include a default ftl page.
Any one has an idea, please let me know.
Thanks in advance
Hemanth
Hemanth Kumar.K| Module Lead| MindTree Ltd. Maruthi Chambers, No. 17/9C, 17/4C, Rupena Agrahara, Hosur Road, Bangalore - 560 068, INDIA |
Voice +91 80 25738005 x 77590| Mobile +91 9986134010| email: hemanth_kanamarlapudi@mindtree.com<ma...@mindtree.com> |www.mindtree.com<blocked::blocked::http://www.mindtree.com/> |
________________________________
http://www.mindtree.com/email/disclaimer.html
Re: Help required in ftl
Posted by Sascha Rodekamp <sa...@googlemail.com>.
Hi Hemanth,
you can include ftl with the @include tag. Check this page:
http://freemarker.sourceforge.net/docs/ref_directive_include.html
Hope that solves your problem.
Have a nice day
Sascha
2010/4/1 Hemanth Kumar Kanamarlapudi <he...@mindtree.com>
> Hi All,
>
> I need a help regarding ftl.
>
> I need to include an ftl file dynamically if it is available or else
> include a default ftl page.
>
> Any one has an idea, please let me know.
>
> Thanks in advance
>
> Hemanth
>
> Hemanth Kumar.K| Module Lead| MindTree Ltd. Maruthi Chambers, No. 17/9C,
> 17/4C, Rupena Agrahara, Hosur Road, Bangalore - 560 068, INDIA |
> Voice +91 80 25738005 x 77590| Mobile +91 9986134010| email:
> hemanth_kanamarlapudi@mindtree.com<mailto:
> hemanth_kanamarlapudi@mindtree.com> |www.mindtree.com<blocked::blocked::
> http://www.mindtree.com/> |
>
>
> ________________________________
> http://www.mindtree.com/email/disclaimer.html
>
--
http://www.lynx.de
RE: Help required in ftl
Posted by Hemanth Kumar Kanamarlapudi <he...@mindtree.com>.
Hi Chirag,
Thank you very much, I am able to solve it using the set field tag using the theme usage you have told me.
Regards
Hemanth
-----Original Message-----
From: Chirag Manocha [mailto:cmanocha@emforium.com]
Sent: Thursday, April 01, 2010 6:44 PM
To: user@ofbiz.apache.org
Subject: Re: Help required in ftl
Hi Hemanth,
You can do this with the use of database. This has been done with the theme use also. You can check the main-decorator screen in CommonScreens.xml of ecommerce.
Regards
--
Chirag Manocha
Sr. Software Engineer
Emforium Group Inc.
+91-98735-47457
----- "Hemanth Kumar Kanamarlapudi" <he...@mindtree.com> wrote:
> From: "Hemanth Kumar Kanamarlapudi" <he...@mindtree.com>
> To: "user@ofbiz.apache.org" <us...@ofbiz.apache.org>
> Sent: Thursday, April 1, 2010 6:23:51 PM
> Subject: Help required in ftl
>
> Hi All,
>
> I need a help regarding ftl.
>
> I need to include an ftl file dynamically if it is available or else
> include a default ftl page.
>
> Any one has an idea, please let me know.
>
> Thanks in advance
>
> Hemanth
>
>
> ________________________________
> http://www.mindtree.com/email/disclaimer.html
Re: Help required in ftl
Posted by Chirag Manocha <cm...@emforium.com>.
Hi Hemanth,
You can do this with the use of database. This has been done with the theme use also. You can check the main-decorator screen in CommonScreens.xml of ecommerce.
Regards
--
Chirag Manocha
Sr. Software Engineer
Emforium Group Inc.
+91-98735-47457
----- "Hemanth Kumar Kanamarlapudi" <he...@mindtree.com> wrote:
> From: "Hemanth Kumar Kanamarlapudi" <he...@mindtree.com>
> To: "user@ofbiz.apache.org" <us...@ofbiz.apache.org>
> Sent: Thursday, April 1, 2010 6:23:51 PM
> Subject: Help required in ftl
>
> Hi All,
>
> I need a help regarding ftl.
>
> I need to include an ftl file dynamically if it is available or else
> include a default ftl page.
>
> Any one has an idea, please let me know.
>
> Thanks in advance
>
> Hemanth
>
> Hemanth Kumar.K| Module Lead| MindTree Ltd. Maruthi Chambers, No.
> 17/9C, 17/4C, Rupena Agrahara, Hosur Road, Bangalore - 560 068, INDIA
> |
> Voice +91 80 25738005 x 77590| Mobile +91 9986134010| email:
> hemanth_kanamarlapudi@mindtree.com<ma...@mindtree.com>
> |www.mindtree.com<blocked::blocked::http://www.mindtree.com/> |
>
>
> ________________________________
> http://www.mindtree.com/email/disclaimer.html