TBS 3.5 beta 2009-05-12

1 view
Skip to first unread message

Skrol29

unread,
May 12, 2009, 5:43:00 AM5/12/09
to TinyButStrong next version
Hello,

Here is a new beta version.
I have made some benches, and the speed has not changed compared to
TBS version 3.4
.
What has changed from previous beta version?

- Parameter "att" is more all-terrain.
- Parameter "att" also support "magnet=#" to delete the attribute when
the value to merge is an empty string.
- Parameter "att" also support "attadd" to tell that the value must be
added to the already existing values of the attributes instead of
replacing it.
- Auto sublocks can now merge a field which is a string. When it is
the case the string is slitted using coma as delimiter.

The file "tbs_3.05_whatsnew.txt" has bee updated.
The beta can be download at :
http://tbs-next.googlegroups.com/web/tbs_v3.05b2009-05-12.zip

Have a nice day

TomH

unread,
May 12, 2009, 8:46:11 AM5/12/09
to TinyButStrong next version
Skrol29,

Love the auto sub-blocks!

The comma-separated list works great.

Thanks for TBS,
TomH

TomH

unread,
May 12, 2009, 2:29:28 PM5/12/09
to tbs-...@googlegroups.com
Hello again Skrol,

I am fiddling with the automatic sublock and am trying to
use the sublock data directly - such as to select checkboxes
based on the contents of the db field by using the automatic
sublock

I have tried like this...
[blk_sub1;ope=html;select=sustain[];selbounds=table;noerr]
and
[blk_sub1.val;ope=html;select=sustain[];selbounds=table;noerr]

I did test the template code using an ondata function to
create an array from the data in the 'sustainable' field in
the db - so I know the template code works.

I was trying to see if I could use the new automatic sublock
feature -- but I just can't figure how to get access to the
source data (the array) of the sub-block to use to feed the
ope=html plugin

Any Ideas???

Thanks,
TomH


FWIW, here's the full template
-----------------------------------
<tr><td colspan=6><hr> Automatic Sub Block Data </td></tr>
<tr>
<td
valign=top>[blk.mfg_id;block=tr;sub1=sustainable;ondata=event1]</td>
<td valign=top>[blk.name;.]<br>list-&gt;array: [blk.pr_susty]
<td valign=top>[blk.city;.],[blk.state;.] </td>
<td valign=top>
Sustainable Criteria:<br>
<li type=circle>[blk_sub1.val;block=li]</li>
</td>

<td>
<table summary="" border=1 width="100%">
[blk_sub1.val;ope=html;select=sustain[];selbounds=table;noerr]
<tr>
<td bgcolor="#ffffcc"><input name="sustain[]"
type="checkbox" id="sustain"

value="Recycled Content" />Recycled Content</td>
</tr>
<tr>
<td bgcolor="#ffffcc" ><input name="sustain[]"
type="checkbox" id="sustain" value="Recyclable"
/>Recyclable</td>
</tr>
<tr>
<td bgcolor="#ffffcc"><input name="sustain[]"
type="checkbox" id="sustain" value="Rapidly Renewable"
/>Rapidly Renewable</td>
</tr>
<tr>
<td bgcolor="#ffffcc"><input name="sustain[]"
type="checkbox" id="sustain" value="GreenGuard Certified"
/>GreenGuard Certified</td>
</tr>
<tr>
<td bgcolor="#ffffcc"><input name="sustain[]"
type="checkbox" id="sustain" value="Cradle to Cradle"
/>Cradle to Cradle</td>
</tr>
<tr>
<td bgcolor="#ffffcc"><input name="sustain[]"
type="checkbox" id="sustain" value="FSC Certified" />FSC
Certified</td>
</tr>
<tr>
<td bgcolor="#ffffcc"><input name="sustain[]"
type="checkbox" id="sustain" value="SCS Certified" />SCS
Certified</td>
</tr>
<tr>
<td bgcolor="#ffffcc"><input name="sustain[]"
type="checkbox" id="sustain" value="Low Maintenance" />Low
Maintenance</td>
</tr>
<tr>
<td bgcolor="#ffffcc"><input name="sustain[]"
type="checkbox" id="sustain" value="Exceptional Durability"
/>Exceptional Durability</td>
</tr>
</table>
</td>
</tr>
Reply all
Reply to author
Forward
0 new messages