By: dubbelpunt
Date: 2006-04-10
Time: 14:15
|
block=begin in tbsoooHi,
I have a problem with block=begin. When a certain variable has some value, the block's display must be false. I found a similar problem in previous threads (on the "programmaing with TBS" forum), I used this solution, but I have an overloop when starting openoffice. I also get the folowing error, TinyButStrong Error (Array value): Can't merge [blkname.$] because sub-item '$' is not an existing key in the array. Here's the code:
The variable [var.blkname_data] is allways set, I've checked this. I'm using tbs-version 2.05.1 and tbsoo version 0.7.8. |
||
By: Olivier Loynet
Date: 2006-04-10
Time: 15:09
|
Re: block=begin in tbsoooI can see a problem of the name of the block on the last line of your code :
It could be better this....
Olivier |
||
By: dubbelpunt
Date: 2006-04-10
Time: 16:29
|
Re: block=begin in tbsoooOh
"blkname" is just an example for here, the real name is something else. The problem isn't in a syntax-error, because when i do it without the onshow and when-clause, it works. I just want the block to disappear when there is nothing to merge in. thx, andries |
||
By: Olivier Loynet
Date: 2006-04-10
Time: 18:50
|
Re: block=begin in tbsoooHello,
Can you try your code without OpenOffice, just TinyBuStrong and a HTML template to test if is possible to write your code, because I not sure the 'onshow' command is a block parameter. http://www.tinybutstrong.com/manual.php#appendix_block Regards, Olivier |
||
By: dubbelpunt
Date: 2006-04-11
Time: 16:49
|
Re: block=begin in tbsoooI've checked and onshow is possible with blocks:
http://www.tinybutstrong.com/manual.php#html_automatic But I just need an example how to let a block disappear when some parameter has a certain value. I tried the example I gave, but it won't work. I'm asking an example on somebody who knows it much better than me :$. |