By: Jared
Date: 2005-07-23
Time: 21:50
|
conditional onload;file=
I am having trouble with a conditional onload. I am using this statement:
[onload;file=../template/default/man_add.html;when [var.conf.orientation]=4]
[onload;file=../template/default/man_mod.html;when [var.conf.orientation]=5]
|
This is not producing the desired result. It seems that it does the first onload statement regardless of the value of [var.conf.orientation].
I am trying to get a section of my template to change depending on the value of my [var.conf.orientation] variable. Am I going about this the wrong way?
|
By: Jared
Date: 2005-07-25
Time: 09:46
|
Re: conditional onload;file=
I resolved this by assigning the desired file name to a variable and passing that to the onload function.
|
By: Skrol29
Date: 2005-07-25
Time: 12:22
|
Re: conditional onload;file=
'where' is a parameter for block.
For a single fields, use parameter 'if'.
|
By: Skrol29
Date: 2005-07-25
Time: 12:23
|
Re: conditional onload;file=
And it is not 'where' but 'when'.
|
|
Posting in progress.
Please wait...
|