Hello, In an attempt to make my bordercolor on my table black I've modified my print statement as follows:

print tablemanager_display(5, NULL, array ('border' => '5', 'bordercolor' => 'black'));

This seems to work for modifying the border color, but at the same time I lose the ability to click on the column headings of the table and have it sort properly.

Am I going about the border color in the correct manner? Is there a way to accomplish what I want and still keep the ability to have the sort function work?

TIA

Comments

pobster’s picture

I can't reproduce your problem? I tried this on one of my existing tables:

print tablemanager_display(1, 35, array ('title' => 'Eastway Dates and Times', 'align' => 'center', 'border' => '2', 'bordercolor' => 'yellow', 'bgcolor' => 'chartreuse'));

...And it displayed fine whilst still allowing me to sort the columns.

I'm going to assume your problem is either with the version of Drupal you're using (I'm currently running 4.6.6 with PHP 5.1) else the problem lies with your browser? Have you tried using something else to view it with?

Pobster

pobster’s picture

Assigned: Unassigned » pobster

Ohhhhh wait :o) Try giving your table a length rather than a NULL value. I didn't notice that before! I reckon your problem is possibly unrelated to your bordercolor attribute and more to do with another bug which I just cannot fathom the best way to fix...

Pobster

prackley’s picture

Thank you! Looking at yours helped me to narrow my issue down. If I include the second param as a numeric instead of NULL, the table sorts just fine.

Thanks again!

pobster’s picture

Status: Active » Closed (duplicate)

Glad that the attributes part wasn't to blame as it's a very simple piece of code and I would have been very embarrassed to have mucked it up!!!

Pobster