Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Divide checkbox list into 2 columns?
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #4
RE: Divide checkbox list into 2 columns?
Unfortunately, you're going to need template edits for that.  Set Hide Input Field to yes and construct the appropriate table rows into your newthread and editpost_first templates. (prefix appropriately if you're using a template prefix)
Very vague HTML structure:

HTML Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<tr>
<td><strong>My Checkbox Field</strong></td>
<td>
<table>
<tr>
<td><label><input type="checkbox" name="xthreads_my_checkbox_field1" value="1" /> Checkbox 1</label></td>
<td><label><input type="checkbox" name="xthreads_my_checkbox_field2" value="1" /> Checkbox 2</label></td>
</tr>
<tr>
<td><label><input type="checkbox" name="xthreads_my_checkbox_field3" value="1" /> Checkbox 3</label></td>
<td><label><input type="checkbox" name="xthreads_my_checkbox_field4" value="1" /> Checkbox 4</label></td>
</tr>
</table>
</td>
</tr>


The HTML in the values list is probably a bit different to what you want.  It allows you to have something like:

Code:
Item 1
Item 2 <i>(rare item)</i>

...and thus not meant to change structure.

Hope that helps.


My Blog
(This post was last modified: 07-20-2011 09:34 AM by ZiNgA BuRgA.)
07-20-2011 09:33 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: Divide checkbox list into 2 columns? - ZiNgA BuRgA - 07-20-2011 09:33 AM

 Standard Tools
Forum Jump: