I've been trying to get some sortable tables running, and yet everything I've tried so far has failed to make them sortable.
Can you point me in the direction of an existing sortable table that works? :)
Printable View
I've been trying to get some sortable tables running, and yet everything I've tried so far has failed to make them sortable.
Can you point me in the direction of an existing sortable table that works? :)
The table needs to be class "sortable",
and it needs to use ! to create table head cells. The th define the sort type for their columns, as any of the following classes:
- sorttable_alpha
- sorttable_ddmm
- sorttable_mmdd
- sorttable_nosort
- sorttable_numeric
- sorttable_sorted
- sorttable_sorted_reverse
If no class is defined, I believe it defaults to sorttable_alpha... The headings of the sortable columns become clickable.
Alpha other Numeric A text other 2 things B text other 4 things C text other 1 thing
Thanks pegasus, that helps a lot, I was wondering about how it all worked... :D
I'm managed to get one of my own working, so having a play around with the settings a bit. :)
I used the code above and my tables in html seem to be converting to BBCODE tables in the wiki vb4
and are not sortable - any ideas?
Code:[TABLE class="sortable"] [TR] [TD="class: blocksubhead sorttable_alpha"]Alpha[/TD] [TD="class: blocksubhead sorttable_nosort"]other[/TD] [TD="class: blocksubhead sorttable_numeric"]Numeric[/TD] [/TR] [TR] [TD]A text[/TD] [TD]other[/TD] [TD]2 things[/TD] [/TR] [TR] [TD]B text[/TD] [TD]other[/TD] [TD]4 things[/TD] [/TR] [TR] [TD]C text[/TD] [TD]other[/TD] [TD]1 thing[/TD] [/TR] [/TABLE]
vBulletin > 4.1.3 has its own (different) Table BB-Code. If you want to use VaultWiki's instead, you need to enable it in the Wiki Code Manager section of the AdminCP (look for a setting like: Parse this BB-Code is wiki pages / non-wiki posts?)