Posted by peterdd on May 26, 2008 at 9:55pm
1 follower
Jump to:
| Project: | Table Manager |
| Version: | 5.x-1.4 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
For multisite installation (one drupal and module code base and each site with its own database and theme), I want to place individual css info for the class tablemanager in the site theme and not use the css-files of the module.
But setting tablemanager_css to false in the admin area removes the class information from the HTML table output too. (line 1044 in tablemanager.module).
Please keep that class information there (remove the condition at line 1044).
So a theme guy can style the table manager HTML in its theme.
Related issue:
http://drupal.org/node/165963
Comments
#1
My quick solution:
Always add a class 'tablemanager' to Tablemanager HTML tables, but also allow additional content creator defined class in the tablemanager tag (legacy).
Further add the table id $tid to the table too, so it can be individually styled by css theme files.
if (!array_key_exists('class', $attrib)) {$attrib['class'] = 'tablemanager';
}
else{
$attrib['class'] = 'tablemanager '.$attrib['class'];
}
$attrib['id'] = 'tablemanager-'.$tid;
example tablemanager tag:
[tablemanager:1,NULL,TRUE,NULL, class=additionalclass]example output:
<table class="tablemanager additionalclass" id="tablemanager-1"> ...</table>