Find A Tutor
Navigation |
Tables Module DemoTables module is a drupal filter module that I have developed. The filter module takes a macro in the form: [table=tables-grid Month |Jan | Feb | Mar | Apr The "[table" defines the beginning of the table. If a next character is a "=" it will then look for a string ending in a space to use as the table class. Only letters numbers and the "-" are permitted to be part of the class string Each cell is separated by a "|" and the rows are separated by a line feed. Therefore this macro becomes:
Multi column cells can be created by inserting only a "&" into a cell, and it will then be merged to the cell to the left of it, or if a "^" is inserted it will merge to the cell above. Therefore: [table=tables-grid | Month |& |& |& Becomes:
If the first character of the cell is a "!", then the cell will be a th cell (a header cell). This will allow you to construct even more specialized style sheets than what are included with this. To insert a literal "!" as the first character insert " !". Included with the module is a number of predefined style sheets: class: tables-elegant
class: tables-professional
class: tables-3d-effects-1
class: tables-3d-effects-2
class: tables-3d-effects-3
class: tables-tables-simple
class: tables-colorful
class: tables-colorful-columns
class: tables-colorful-list
As of version 1.2 (uploaded on October 9, 2005) it now supports drupal themed tables this is done by setting the class to theme:
Note that the theme'd tables do not support combining columns and rows at this time. |