I'm trying to populate two select tags, which each have a few option tags, using TBS. I've done this before but the logic I've used before is not quite working for me.
Here's a snippet of my template code:
<p class="attributes">
<label for="[product_attributes_1.attribute_name][product_attributes;block=p;serial]">[product_attributes_1.attribute_name;block=p]:</label>
<select name="attr_[product_attributes.attribute_name;block=p]" id="attr_[product_attributes.attribute_name;block=p]">
<option value="">Select one</option>
<option value="[product_attributes_1.attribute_value_id;block=option]">[product_attributes_1.attribute_value;block=option]</option>
</select>
</p>
</td>
|
What I usually do to populate my label, select and option html tags is I include the code block=XXX at the end of my bracketed TBS tags. The problem I'm having is when I type block=p, I'm getting multiple <p></p> tags on my page each of which have a singe <option></option> tags rather than one <p></p> with multiple <option></option> tags.
When I try block=td, I get multiple td tags each with a single <option></option> tag.
When I try block=tr, I get multiple tr tags each with single <option></option> tags.
What is going on here?