I've installed TableField CCK which works fine but the content of the table cells is enclosed in "p" tags. The formatting is inherited from the style.css with margins above and below the paragraphs which I need generally on my site but not in this table. Try as I may, I can't effect this. I would like to either get rid of the "p" tags in my table altogether or define a class for them. I tried this with
<p class="team"><?php print $node->field_lebenslauf[0]['view'] ?></p>
Result the code <p class="team"></p> present outside the table, inside the cells were the usual <td><p>cell content</p></td> without the class="team".
I have also tried every conceivable combination in addressing the table ID in the style.css. I generally manage with the css but php is a matter of luck for me. The theme I'm using is LiteJazz.
I would really appreciate a reference on this.
Comments
Comment #1
kevin hankens commentedThis might be a stretch, but what about defining a cstom input filter that is similar to "filtered html" but without
tags? You could then assign your tablefield to use filtered input and select your new filter that gets rid of
tags.
If that doesn't work, let me know and I'll see if I can think of anything else :)
Comment #2
ebo1958 commentedBrilliant! Your suggestion worked, thank you.
Comment #3
lauramba commentedGreat help indeed, Kevin. Thx