Categories > TinyButStrong general >

block in empty tag's attributes error

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: kapouer
Date: 2006-05-03
Time: 12:12

block in empty tag's attributes error

TBS version beta 3.00b32

my template :
<imgalt src="toto.php?s=[sizes.key;block=imgalt]" width="[sizes.val]" />
the corresponding php code :
$IMAGES_SIZES = Array(
     "s" => 100,
     "m" => 140,
     "b" => 170,
     "l" => 280
);

$TBS->MergeBlock('sizes', $IMAGES_SIZES);

outputs this error :

TinyButStrong Error (Block definition): [sizes.key] can not be defined because tag <imgalt> or </imgalt> is not found.


Otherwise, it works perfectly when <imgalt ... /> is written <imgalt></imgalt>

Is it a bug or is it me using wrong syntax for block=imgalt ?

thanks for any answer...
By: kapouer
Date: 2006-05-03
Time: 12:13

Re: block in empty tag's attributes error

ha... i didn't RTFM :

"The TBS tag for the block definition must be placed between the pair of Html tags.
But it is not necessarily the first TBS field in the block."