[Typo3] <p> in <td> how to remove?

JoH info at cybercraft.de
Fri Apr 29 15:11:24 CEST 2005


>>> What is the problem with the <p> in a <td>?
>>> It's possible to make them harmless in your stylesheet.
>>
>> Not all the data in a table is a paragraph. What if I would like to
>> place a list in a td? <td><p><ul><li></li></ul></p></td>.
>> Why not trow some div's and some spans in this td...  ;)
>> Semanticly speaking, this is just not correct.
>
> Hi Rob,
>
> AAAAHHHH Don't do stuff like this! This is indeed semantically not
>   done. You are joking!!
>
> Will you post the hardcoded '<p> in a <td>' bug?
>
>> Also, I set some styles to my Paragraphs in my stylesheet, but I do
>> not want them to all have the class bodytext (another issue...)
>>
>> For now, i guess i'll have to do some css tricks, again
>> still, the bad html output of Typo sometimes realy gives me a
>> head-ache.
>
> Aha ok....just to please you the content-rendering list has been
> established ;-) The accessibility list just didn't cover all aspects
> concerning the output. I hope to post a message tonight in the
> accessibility list about the new list. In due time the accessibility
> list will be replaced by the content-rendering list.

Don't see the bug here. - Just remove this ugly PHP Userfunc, replace it
with clean TS and you're done.

### Kill Userfunc ###
tt_content.table.20 >

### Your Table TS ###
tt_content.table.20 = TEXT
tt_content.table.20 {
    wrap = <table>|</table>
    field = bodytext
    split {
        token.char = 10
        cObjNum = 1
        1 {
            10 = TEXT
            10 {
                wrap = <tr>|</tr>
                current = 1
                split {
                    token = |
                    cObjNum = 1
                    1 {
                        10 = TEXT
                        10.current = 1
                        10.parseFunc < lib.parseFunc
                        10.wrap = <td>|</td>
                    }
                }
            }
        }
    }
}

Not tested but should be working.

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your knob sometimes!)
Dieter Nuhr, German comedian
openBC: http://www.openbc.com/go/invuid/Jo_Hasenau





More information about the TYPO3-english mailing list