Re: include with custom parameter
Oops .. terribly sorry, I actually thought I was on the OFBiz mailing list :) My bad On Mon, Apr 3, 2017 at 11:46 AM, Taher Alkhateeb wrote: > Oops, crossed on wire. Thank you for pitching in, I guess the thread is > answered now :) > > On Mon, Apr 3, 2017 at 11:43 AM, Daniel Dekany wrote: > >> Hello, >> >> There's no such feature. If a reusable template fragment has >> parameters (or has nested content), then you meant to use macros (or >> functions). >> >> >> Sunday, April 2, 2017, 11:47:54 PM, Ingo Mahnke wrote: >> >> > Hallo, >> > maybe someone can help me. >> > Is it possibile to use custom parameter with the include directive? >> > >> > >> > Template 1 >> > >> > >> > <#include "template2.ftl" param=v1> >> > ... >> > .. >> > >> > >> > template2.ftl >> > >> > ... >> > <#if (param=="v1")> >> > .. >> > .. >> > <#else> >> > .. >> > .. >> > >> > >> > >> > Thank you very much!!! >> > >> > Ingo >> > >> > >> >> -- >> Thanks, >> Daniel Dekany >> >> >
Re: include with custom parameter
Oops, crossed on wire. Thank you for pitching in, I guess the thread is answered now :) On Mon, Apr 3, 2017 at 11:43 AM, Daniel Dekany wrote: > Hello, > > There's no such feature. If a reusable template fragment has > parameters (or has nested content), then you meant to use macros (or > functions). > > > Sunday, April 2, 2017, 11:47:54 PM, Ingo Mahnke wrote: > > > Hallo, > > maybe someone can help me. > > Is it possibile to use custom parameter with the include directive? > > > > > > Template 1 > > > > > > <#include "template2.ftl" param=v1> > > ... > > .. > > > > > > template2.ftl > > > > ... > > <#if (param=="v1")> > > .. > > .. > > <#else> > > .. > > .. > > > > > > > > Thank you very much!!! > > > > Ingo > > > > > > -- > Thanks, > Daniel Dekany > >
Re: Aw: Re: Re: include with custom parameter
You are on the right list. (There's no separate user list currently, due to the low traffic.) Monday, April 3, 2017, 10:12:53 AM, Ingo Mahnke wrote: > Hallo Taher, > why I should subscribe to the OfBiz userlist? > > > On "lists.apache.org" I found only the "d...@freemarker.apache.org" list. > > Ingo > > > >> Gesendet: Montag, 03. April 2017 um 10:04 Uhr >> Von: "Taher Alkhateeb" >> An: dev@freemarker.incubator.apache.org >> Betreff: Re: Aw: Re: include with custom parameter >> >> Oh I meant the OFBiz user mailing list. Anyway FreeMarker is an Apache >> project now so the mailing list changed. You need to follow the new one >> provided in lists.apache.org >> >> On Apr 3, 2017 10:34 AM, "Ingo Mahnke" wrote: >> >> > Hi Thaer, >> > good idea. >> > >> > I tried to subscribe on "http://freemarker.org/mailing-lists.html"; and >> > clickd on "freemarker-u...@lists.sourceforge.net" -> 404 >> > >> > Any other method to subscribe? >> > >> > Ingo >> > >> > >> > >> > >> > >> > > Gesendet: Montag, 03. April 2017 um 09:20 Uhr >> > > Von: "Taher Alkhateeb" >> > > An: dev@freemarker.incubator.apache.org >> > > Betreff: Re: include with custom parameter >> > > >> > > Hi Ingo, >> > > >> > > I think this question fits more in the user mailing list. >> > > >> > > Regards, >> > > >> > > On Mon, Apr 3, 2017 at 12:47 AM, Ingo Mahnke >> > wrote: >> > > >> > > > Hallo, >> > > > maybe someone can help me. >> > > > Is it possibile to use custom parameter with the include directive? >> > > > >> > > > >> > > > Template 1 >> > > > >> > > > >> > > > <#include "template2.ftl" param=v1> >> > > > ... >> > > > .. >> > > > >> > > > >> > > > template2.ftl >> > > > >> > > > ... >> > > > <#if (param=="v1")> >> > > > .. >> > > > .. >> > > > <#else> >> > > > .. >> > > > .. >> > > > >> > > > >> > > > >> > > > Thank you very much!!! >> > > > >> > > > Ingo >> > > > >> > > > >> > > >> > >> > -- Thanks, Daniel Dekany
Re: Re: Re: include with custom parameter
Okay so just to clarify things, we have 3 mailing lists under discussion: - Apache OFBiz developer mailing list strictly for topics related to the design and development of the OFBiz Project itself - Apache OFBiz user mailing list for installation, deployment, custom development and usage related topics - Apache FreeMarker mailing list: They only have one list which you mentioned. So my recommendation to you was to redirect your question from dev@ofbiz to user@ofbiz because your question is more relevant over there. I think you misunderstood my suggestion and thought I meant the FreeMarker ML. So there are two possible places to ask your question, the user mailing list for OFBiz, or directly in the FreeMarker mailing list. I think it makes more sense to ask in the user list of OFBiz because you need FreeMarker in the context of OFBiz but it's up to you. So there you, I hope this explains things! On Mon, Apr 3, 2017 at 11:12 AM, Ingo Mahnke wrote: > Hallo Taher, > why I should subscribe to the OfBiz userlist? > > > On "lists.apache.org" I found only the "d...@freemarker.apache.org" list. > > Ingo > > > > > Gesendet: Montag, 03. April 2017 um 10:04 Uhr > > Von: "Taher Alkhateeb" > > An: dev@freemarker.incubator.apache.org > > Betreff: Re: Aw: Re: include with custom parameter > > > > Oh I meant the OFBiz user mailing list. Anyway FreeMarker is an Apache > > project now so the mailing list changed. You need to follow the new one > > provided in lists.apache.org > > > > On Apr 3, 2017 10:34 AM, "Ingo Mahnke" wrote: > > > > > Hi Thaer, > > > good idea. > > > > > > I tried to subscribe on "http://freemarker.org/mailing-lists.html"; and > > > clickd on "freemarker-u...@lists.sourceforge.net" -> 404 > > > > > > Any other method to subscribe? > > > > > > Ingo > > > > > > > > > > > > > > > > > > > Gesendet: Montag, 03. April 2017 um 09:20 Uhr > > > > Von: "Taher Alkhateeb" > > > > An: dev@freemarker.incubator.apache.org > > > > Betreff: Re: include with custom parameter > > > > > > > > Hi Ingo, > > > > > > > > I think this question fits more in the user mailing list. > > > > > > > > Regards, > > > > > > > > On Mon, Apr 3, 2017 at 12:47 AM, Ingo Mahnke > > > > wrote: > > > > > > > > > Hallo, > > > > > maybe someone can help me. > > > > > Is it possibile to use custom parameter with the include directive? > > > > > > > > > > > > > > > Template 1 > > > > > > > > > > > > > > > <#include "template2.ftl" param=v1> > > > > > ... > > > > > .. > > > > > > > > > > > > > > > template2.ftl > > > > > > > > > > ... > > > > > <#if (param=="v1")> > > > > > .. > > > > > .. > > > > > <#else> > > > > > .. > > > > > .. > > > > > > > > > > > > > > > > > > > > Thank you very much!!! > > > > > > > > > > Ingo > > > > > > > > > > > > > > > > > > > >
Re: include with custom parameter
Hello, There's no such feature. If a reusable template fragment has parameters (or has nested content), then you meant to use macros (or functions). Sunday, April 2, 2017, 11:47:54 PM, Ingo Mahnke wrote: > Hallo, > maybe someone can help me. > Is it possibile to use custom parameter with the include directive? > > > Template 1 > > > <#include "template2.ftl" param=v1> > ... > .. > > > template2.ftl > > ... > <#if (param=="v1")> > .. > .. > <#else> > .. > .. > > > > Thank you very much!!! > > Ingo > > -- Thanks, Daniel Dekany
Aw: Re: Re: include with custom parameter
Hallo Taher, why I should subscribe to the OfBiz userlist? On "lists.apache.org" I found only the "d...@freemarker.apache.org" list. Ingo > Gesendet: Montag, 03. April 2017 um 10:04 Uhr > Von: "Taher Alkhateeb" > An: dev@freemarker.incubator.apache.org > Betreff: Re: Aw: Re: include with custom parameter > > Oh I meant the OFBiz user mailing list. Anyway FreeMarker is an Apache > project now so the mailing list changed. You need to follow the new one > provided in lists.apache.org > > On Apr 3, 2017 10:34 AM, "Ingo Mahnke" wrote: > > > Hi Thaer, > > good idea. > > > > I tried to subscribe on "http://freemarker.org/mailing-lists.html"; and > > clickd on "freemarker-u...@lists.sourceforge.net" -> 404 > > > > Any other method to subscribe? > > > > Ingo > > > > > > > > > > > > > Gesendet: Montag, 03. April 2017 um 09:20 Uhr > > > Von: "Taher Alkhateeb" > > > An: dev@freemarker.incubator.apache.org > > > Betreff: Re: include with custom parameter > > > > > > Hi Ingo, > > > > > > I think this question fits more in the user mailing list. > > > > > > Regards, > > > > > > On Mon, Apr 3, 2017 at 12:47 AM, Ingo Mahnke > > wrote: > > > > > > > Hallo, > > > > maybe someone can help me. > > > > Is it possibile to use custom parameter with the include directive? > > > > > > > > > > > > Template 1 > > > > > > > > > > > > <#include "template2.ftl" param=v1> > > > > ... > > > > .. > > > > > > > > > > > > template2.ftl > > > > > > > > ... > > > > <#if (param=="v1")> > > > > .. > > > > .. > > > > <#else> > > > > .. > > > > .. > > > > > > > > > > > > > > > > Thank you very much!!! > > > > > > > > Ingo > > > > > > > > > > > > > >
Re: Aw: Re: include with custom parameter
Oh I meant the OFBiz user mailing list. Anyway FreeMarker is an Apache project now so the mailing list changed. You need to follow the new one provided in lists.apache.org On Apr 3, 2017 10:34 AM, "Ingo Mahnke" wrote: > Hi Thaer, > good idea. > > I tried to subscribe on "http://freemarker.org/mailing-lists.html"; and > clickd on "freemarker-u...@lists.sourceforge.net" -> 404 > > Any other method to subscribe? > > Ingo > > > > > > > Gesendet: Montag, 03. April 2017 um 09:20 Uhr > > Von: "Taher Alkhateeb" > > An: dev@freemarker.incubator.apache.org > > Betreff: Re: include with custom parameter > > > > Hi Ingo, > > > > I think this question fits more in the user mailing list. > > > > Regards, > > > > On Mon, Apr 3, 2017 at 12:47 AM, Ingo Mahnke > wrote: > > > > > Hallo, > > > maybe someone can help me. > > > Is it possibile to use custom parameter with the include directive? > > > > > > > > > Template 1 > > > > > > > > > <#include "template2.ftl" param=v1> > > > ... > > > .. > > > > > > > > > template2.ftl > > > > > > ... > > > <#if (param=="v1")> > > > .. > > > .. > > > <#else> > > > .. > > > .. > > > > > > > > > > > > Thank you very much!!! > > > > > > Ingo > > > > > > > > >
Aw: Re: include with custom parameter
Hi Thaer, good idea. I tried to subscribe on "http://freemarker.org/mailing-lists.html"; and clickd on "freemarker-u...@lists.sourceforge.net" -> 404 Any other method to subscribe? Ingo > Gesendet: Montag, 03. April 2017 um 09:20 Uhr > Von: "Taher Alkhateeb" > An: dev@freemarker.incubator.apache.org > Betreff: Re: include with custom parameter > > Hi Ingo, > > I think this question fits more in the user mailing list. > > Regards, > > On Mon, Apr 3, 2017 at 12:47 AM, Ingo Mahnke wrote: > > > Hallo, > > maybe someone can help me. > > Is it possibile to use custom parameter with the include directive? > > > > > > Template 1 > > > > > > <#include "template2.ftl" param=v1> > > ... > > .. > > > > > > template2.ftl > > > > ... > > <#if (param=="v1")> > > .. > > .. > > <#else> > > .. > > .. > > > > > > > > Thank you very much!!! > > > > Ingo > > > > >
Re: include with custom parameter
Hi Ingo, I think this question fits more in the user mailing list. Regards, On Mon, Apr 3, 2017 at 12:47 AM, Ingo Mahnke wrote: > Hallo, > maybe someone can help me. > Is it possibile to use custom parameter with the include directive? > > > Template 1 > > > <#include "template2.ftl" param=v1> > ... > .. > > > template2.ftl > > ... > <#if (param=="v1")> > .. > .. > <#else> > .. > .. > > > > Thank you very much!!! > > Ingo > >