Categories > TinyButStrong general >

Remove a html section within a mergeblock

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Michael Frey
Date: 2014-08-11
Time: 13:04

Remove a html section within a mergeblock

I am merging a block as follows:

<ul>
    <li class="[blkSites.active; block=li]"><a href="http://[blkSites.url]"><img src="[blkSites.icon]" width="32px;" height="32px">[blkSites.name]</a></li>
</ul>

So the blkSites object contains an array with several values: active, url, icon and name.

I want to remove the img if there is not icon defined. I tried adding ;magnet=img to [blkSites.icon] but this does not work.

How would I achieve this?
Thank you
By: Skrol29
Date: 2014-08-12
Time: 00:41

Re: Remove a html section within a mergeblock