By: Florian Krebber
Date: 2008-10-08
Time: 12:19
|
bmagnet don't work
Hello,
i started using TBS some time ago and now have my first problem. I have something like this:
<div style="padding-bottom:10px;padding-top:10px;">[var.breadcrumb;htmlconv=no]</div>
<div><a href="reiseziele_a_z.php?land=[laender.id]">[laender.name;block=div;bmagnet=div]</a></div>
<div><a href="reiseziele_a_z.php?land=[var._REQUEST.land]®ion=[regionen.id]">[regionen.name;block=div;bmagnet=div]</a></div>
<div><a href="reiseziele_a_z.php?land=[var._REQUEST.land]®ion=[var._REQUEST.region]&ort=[orte.id]">[orte.name;block=div;bmagnet=div]</a></div> |
Now, when the array laender or regionen or orte is empty, the div still shows up. Isn't bmagnet supposed to delte it if data source is empty? I really can't get this to work.
Thanks for your help.
|
By: Skrol29
Date: 2008-10-10
Time: 22:51
|
Re: bmagnet don't work
Hi,
The block assigned to "bmagnet" is supposed to embed the merged block.
In your case, it is the same block (the same <div>). So there is no need to use "bmagnet". No data => no line.
|
By: Florian Krebber
Date: 2008-10-13
Time: 08:24
|
Re: bmagnet don't work
Well i thought so too (no data -> no line) but if for example regionen is an empty array there is still the line [regionen.name;block=div;] |
showing.
|
By: Skrol29
Date: 2008-10-13
Time: 09:14
|
Re: bmagnet don't work
Hi,
You may have a mistake in your HTML or PHP, your snippet works very fine for me.
|
|
Posting in progress.
Please wait...
|