Categories > TinyButStrong general >

Tags not deleting on block

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: OuTa-SyNc
Date: 2009-05-14
Time: 12:06

Tags not deleting on block

Hi,

I'm not sure why this is happening but my custom tags on a block are not getting deleted on merge, my blocks are defined as follows:

<m2>
[mu.catTitle;block=m2; p1=[hd.catID]]
</m2>

This is just an example, but the problem is the <m2> tags are not deleting on merge, if I change the code as per the manual to:

<m2>
[mu;block=m2; p1=[hd.catID]][mu.catTitle]
</m2>

I still get the same result, custom tags are not being deleted??
By: Skrol29
Date: 2009-05-14
Time: 14:15

Re: Tags not deleting on block

Hi,

This is the normal TBS behavior. If you use the "block=tag" syntax, then tags are kept as part of the block.

You can delete the tag by yourself:
$TBS->Source = str_replace(array('<m2>','</m2>'),'',$TBS->Source);

Or ask to TBS to delete them by plcing this inside your block (slower):
[onshow;magnet=m2;mtype=m+m]

You can also not use custom tags:
[mu.catTitle;block=_; p1=[hd.catID]]