[TYPO3] Getting rid of <p class="bodytext">

Claudio claudio.strizzolo at ru.bbishts.infn.it
Thu Jan 19 11:58:58 CET 2006


Hi Klaus

> So if i understand you right you dont want the text to be in p tags at
> all? I cant help you there and i think that that would leave the styling
> of your text at the mercy of the diff. browsers. without you having any
> control of it unless it is always inside some other tag like div or
> table.

well, actually I'd like something different.
I do not want to remove ALL p tags, just the ones automatically added by
Typo3, that is <p class="bodytext"> tags. If I'd like to remove all the
wrapping tags, the solution suggested by David Stone, that I also included
in my original message, would work:

lib.parseFunc_RTE.nonTypoTagStdWrap.encapsLines.removeWrapping = 1

But this is not what I need.
I want to be able to include my own structure tags, like table, p, div and
so on. For instance, the following <p> that I include for styling
purposes should be left untouched:

<p class="mytext">
Don't change this tag
</p>

This would make me able to format the content as I like.
What I need to avoid is Typo adding its own structure tags, as they are
sometimes messy. For instance, this portion of code:

<table>
<tr>
<td>mytext</td>
...

gets rendered like follows:

<table>
<tr>
<td><p class="bodytext">mytext</p></td>
...

I might certainly use a CSS like:

p.bodytext { margin:0; padding:0;}

or something like that in order to make the added p almost irrelevant. But
a cleaner solution would be convincing Typo3 not to include it at all.
Thanks again

Claudio



More information about the TYPO3-english mailing list