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->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>