Categories > TinyButStrong general >

block=img/ not working

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Alex
Date: 2012-08-14
Time: 15:24

block=img/ not working

From manual:
block=tag/     By adding character / at the end of the tag's name, TBS won't retrieve the closing tag. The block will be defined on the single opening XML/HTML tag which contains the TBS tag. This can be useful to multiply an image for example.

My example:
<img src="test.png">[onshow;block=img/;when [some_var]='some_value']

Got error:
TinyButStrong Error in block's definition [onshow...]: at least one tag corresponding to img/ is not found. Check opening tags, closing tags and embedding levels.

Why its not working?
By: Skrol29
Date: 2012-08-14
Time: 16:02

Re: block=img/ not working

Hi,

Your TBS field must be placed inside the <image> element.
By: Alex
Date: 2012-08-14
Time: 16:30

Re: block=img/ not working

Thanks. Right code is:
<img src="test.png"[onshow;block=img/;when [some_var]='some_value'] />