Hi Rwd,
What you ask is possible but you're using the wrong parameters.
block=img cannot work, because <img> has no closing tag. TBS is not supposed to know that. (maybe I could had an extra parameter to tell him so). So your first snippet is ok if you use the explicit syntax.
If you don't want the explicit syntax, then the TBS tag cannot be a block.
Parameter 'when' is only for blocks. It is ignored for a tag which is a field. Use parameter 'if' for Field instead.
[onshow] automatic tags, can be Fields or Blocks depending to the presence of parameter 'block'.
So, the following snippet should work:
<img src="test.jpg" [onshow;if '[section_main.#;noerr]' == '1'; then ' ' ; else ''; magnet=img; mtype=m*]>
|