So I have Table Manager set to use tablemanager.css (Which in reality is tablemanager0.css, but anyway) yet it does not reflect any changes I make to the CSS file. IE I want to make the main table wider and then change the odd and even colors so it is easier to read. Nothing I do changes this, I have even tried emptying my Cache, nothing.
Any ideas?
Comments
Comment #1
pobster commentedThe whole point of tablemanager is that it uses the standard call to theme_table and so, uses your current themes css file. *That's* what you need to alter... Enabling tablemanager.css is completely experimental and only allows you to do so much... This is because you're essentially creating a conflict as both your theme and the tablemanager css files get imported for the table. I would assume your theme takes presidence here - hence my view that it's your theme you need to change.
TBH it's a pity that the theme_table call doesn't allow you to specify style tags for all the table elements, then you could completely separate tablemanager tables from normal tables and theme them differently.
Pobster
Comment #2
pobster commentedComment #3
pobster commentedHmmm... Wait... You did actually enable the css in settings didn't you? Just checking as you said 'no changes made any difference'? I know the file is accessed correctly as I have it working myself (just as the standard default) here
Pobster
Comment #4
Kray commentedYes, I enabled the 'use tablemanager.css' in the settings. When I look at the code, it is calling both CSS files as well, so I am not sure what the problem is. I want to make everything a bit bigger and add more padding to tidy it up a bit (I'm pretty anal that way lol).
Comment #5
pobster commentedWhen you enable it does it display the background picture like mine does in the link I gave you above?
...I confess I'm intrigued :o)
Pobster
Comment #6
Kray commentedI don't see a background picture, yours looks like mine with standard grey background. Though your text appears larger than mine (I am also using the multiflex theme. I did not find anything in it's CSS to change for the odd/even stuff either. *sigh*
Comment #7
pobster commentedAh no you see there *is* a background picture - it's a sort of shimmery grey background which repeats itself across the table. It's not the standard which is a plain 'matt' grey.
You know you can set 'class' tags within the html elements part of the filter, you could then reference them in the tablemanager.css file.
Pobster
Comment #8
pobster commentedI'll knock you up an example if you'd like? (later)
Pobster
Comment #9
Kray commentedI tried changing the background color but it didn't seem to work. If you could give me an example to put in I would love to try and see if that will work! I am out of ideas here.
Comment #10
pobster commentedOkay just to give you a range of options, you can either;
Specify your styles from the node you're using
Or,
Change the tablemanager0.css file (call so, as there used to be a tablemanager1.css file but I noticed a HUGE bug with the way Drupal works so I had to get rid of it).
For the first way you'd do something like this;
[tablemanager:1, NULL, FALSE, NULL, class = special]The table code output will then look like this:
<table class="special">Now the (stupid in my opinion) thing about this is that it *only* affects the table tag itself and not anything else associated with the table, such as the
<tr>and<td>tags. That means you can only set styles for that particular table tag and not the rows and cells inside it without affecting other tables you may have on your page (which kind of includes everything from your header, events, footer, etc...)Anyways, to see it working type this:
Erm, I'm a bit busy at work atm, so I'll give you an example of using the css file a bit later.
Pobster
Comment #11
pobster commentedJust for some clarity with what I've written above, type this instead;
See the point I'm making is that *any* table which utilizes
<tr class="odd">will obviously be affected... It's a shame theme_table doesn't apply a class tag to every table element.Pobster
Comment #12
pobster commentedIncidentally... Don't forget that you can now 'theme' cells (was quite proud of this!) by using this when entering data;
[class = special]PaulWhich tablemanager processes and displays as;
<td class="special">Paul</td>Then as above, you can add styles/ themeing etc, blah...
Pobster