1. how can i search a table with the drupal search module?

2. how can i fix the column, row, and table dimensions? do i need to edit the tablemanager css file? if so a few lines of example code would be appreciated.

Comments

pobster’s picture

Status: Active » Closed (fixed)

You *must* be American... All this information is easily findable, in fact your second question is answered on the modules download page.

You can also pass parameters to the filter for the

tag, such as setting borders (and border rules), frame rules, cellspacing/ cellpadding and alignment. Experiment with these parameters on one of your own tables:

[tablemanager:1, NULL, FALSE, NULL, title = My Table | bgcolor = yellow | border = 5 | frame = vsides]

And in the current versions of Tablemanager tables aren't created as nodes (in the new version they are) so unless a table is embedded in a node then it won't be indexed for the search. So... Just embed all your tables, job done...

If you require more flexibility with css then yes, you can alter tablemanager0.css and set a class for your table to match.

Pobster

atomicmass’s picture

if i enter: [tablemanager:1, NULL, FALSE, NULL, title = my table title | table width = 500]
the width of the table does not limit to 500 pixels if one of the table entries is a long string greater than that width, i guess that is why i am confused. i also tried: [tablemanager:1, NULL, FALSE, column = 2 | start = "a" | end = "z" | width = 100] to make the width of column 2 100 pixles, but i think i am doing something wrong because that does not work either.

i know how to edit the .css file, but how would i "set a class for your table to match"

sorry if my questions sound redundant. i am still new to drupal.

pobster’s picture

It's not that you're a newb - I don't mind that at all. It's more that you're just not trying very hard...

I just used what you wrote;

[tablemanager:1, NULL, FALSE, NULL, title = my table title | table width = 500]

Which results in the source producing this;

<table title="my table title" table width="500">

It does exactly what you told it to do... The only problem is that what you told it to do is rubbish - it's not a valid html attribute.

Do this;

Go to http://www.google.com

Type 'html table' and click search.

Click on the very first thing that comes up, which is http://primeshop.com/html/jump5.htm

About halfway down it tells you about attributes, the bit that's relevant is for the table tag - then try this;

[tablemanager:1, NULL, FALSE, NULL, title = my table title | width = 100%]

Pobster

weg21’s picture

Hello Pobster,

I can understand your meaning of "you can alter tablemanager0.css and set a class for your table to match." But how can I define a table's class? I only get -------> [tablemanager:8,,TRUE]

Is the tablemanager:8 the class name of the table? I don't think so. Need help!!! Thanks!