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

pobster’s picture

Status: Active » Closed (works as designed)

The 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

pobster’s picture

Status: Closed (works as designed) » Closed (fixed)
pobster’s picture

Hmmm... 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

Kray’s picture

Yes, 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).

pobster’s picture

When 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

Kray’s picture

I 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*

pobster’s picture

Ah 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

pobster’s picture

I'll knock you up an example if you'd like? (later)

Pobster

Kray’s picture

I 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.

pobster’s picture

Okay 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:

<style type="text/css">
table.special {font-size: 24pt;}
</style>

[tablemanager:1, NULL, FALSE, NULL, class = special]

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

pobster’s picture

Just for some clarity with what I've written above, type this instead;

<style type="text/css">
table.special {font-size: 24pt;}
tr.odd {font-size: 12pt;}
</style>

[tablemanager:1, NULL, FALSE, NULL, class = special]

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

pobster’s picture

Incidentally... Don't forget that you can now 'theme' cells (was quite proud of this!) by using this when entering data;

[class = special]Paul

Which tablemanager processes and displays as;

<td class="special">Paul</td>

Then as above, you can add styles/ themeing etc, blah...

Pobster