texte = 1013--94eb2c14c872ceb0e7054914798bContent-Type: text/plain; charset=UTF-8Content-Transfer-Encoding: quoted-printableHi all,It would definitely be good to get a clear handle on the relationship andhierarchy between all of the different types of variables.The changed behaviour has left me struggling a bit to define default valuesin an include file which can then be overwritten if values are passed in asinclude variables.From a 2012 post by Brian Fries (thanks Brian) it turns out - and I did notknow this - that the following tags can be used in an include file:[formvariables form=3Dinclude][name]=3D[value][/formvariables][params_string]So if we configure the files like this:=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94-test1.dna=E2=80=94==E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94-[include file=3Dtest2.inc&var1=3Dinclude1&var2=3Dinclude2&var4=3Dinclude4]
main file : [var1] with [var2] with [var3] with [var4]=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94-=E2=80=94=E2=80=94==E2=80=94=E2=80=94=E2=80=94=E2=80=94-=E2=80=94=E2=80=94=E2=80=94=E2=80=94==E2=80=94=E2=80=94-=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94-test2.inc=E2=80=94==E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94-[text]var1=3Ddefault1[/text][text]var2=3Ddefault2[/text][text]var3=3Ddefault3[/text][text]var4=3Ddefault4[/text][listwords words=3D[url][params_string][/url]&delimiters=3D[url]&[/url]][hi=deif[index]=3D1][text][word][/text][/hideif][/listwords]included file : [var1] with [var2] with [var3] with [var4]=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94-=E2=80=94=E2=80=94==E2=80=94=E2=80=94=E2=80=94=E2=80=94-=E2=80=94=E2=80=94=E2=80=94=E2=80=94==E2=80=94=E2=80=94-=E2=80=94=E2=80=94=E2=80=94I get the desired result. I have stopped using insecure text variables toset defaults in include files as they are useless if the include field isused a second or more times further down in the code. This all feels likea hack and probably is, but it works.Interestingly if I use this in the include file:=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94-test2.inc=E2=80=94==E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94-[text]var1=3Ddefault1[/text][text]var2=3Ddefault2[/text][text]var3=3Ddefault3[/text][text]var4=3Ddefault4[/text][formvariablesform=3Dinclude&name=3Dvar&exact=3DF][text][name]=3D[value][/text][/formvari=ables]included file : [var1] with [var2] with [var3] with [var4]=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94-=E2=80=94=E2=80=94==E2=80=94=E2=80=94=E2=80=94=E2=80=94-=E2=80=94=E2=80=94=E2=80=94=E2=80=94==E2=80=94=E2=80=94-=E2=80=94=E2=80=94=E2=80=94It doesn't work as desired. The [formvariables] get completely wiped itseems after the text variables are defined.- Tom--94eb2c14c872ceb0e7054914798bContent-Type: text/html; charset=UTF-8Content-Transfer-Encoding: quoted-printable
Hi all,
It would definitely be good to =get a clear handle on the relationship and hierarchy between all of the dif=ferent types of variables. =C2=A0
The changed beha=viour has left me struggling a bit to define default values in an include f=ile which can then be overwritten if values are passed in as include variab=les.
From a 2012 post by Brian Fries (thanks Brian=) it turns out - and I did not know this - that the following tags can be u=sed in an include file:
[formvariables form=3Dinclude][name]==3D[value][/formvariables]
[params_string]
So if we configure the files like this:
=E2==80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94-test1.dna=E2=80=94=E2==80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94-
[include =file=3Dtest2.inc&var1=3Dinclude1&var2=3Dinclude2&var4=3Dinclude=4]
main file : [var1] =with [var2] with [var3] with [var4]
=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80==94-=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94-=E2=80=94=E2=80==94=E2=80=94=E2=80=94=E2=80=94=E2=80=94-=E2=80=94=E2=80=94
=E2=80=94=E2=80=94=E2=80=94=E2=80==94=E2=80=94=E2=80=94-test2.inc=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80==94=E2=80=94-
[text]var1=3Ddefault1[/text]
[text=]var2=3Ddefault2[/text]
[text]var3=3Ddefault3[/text]
[t=ext]var4=3Ddefault4[/text]
[listwords words==3D[url][params_string][/url]&delimiters=3D[url]&[/url]][hideif [in=dex]=3D1][text][word][/text][/hideif][/listwords]
included file : [var1] with [var2] with [var3] with [var4]
==E2=80=94=E2=80=94=E2=80=94==E2=80=94=E2=80=94=E2=80=94-=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94==E2=80=94-=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94-=E2=80=94==E2=80=94=E2=80=94
<=div>I get the desired result.=C2=A0 I have stopped using insecure text vari=ables to set defaults in include files as they are useless if the include f=ield is used a second or more times further down in the code.=C2=A0 This al=l feels like a hack and probably is, but it works.