[TYPO3-english] how to remove <p class="bodytext"> from table cells inside tt_news record ?
Daniel Mann
daniel.mann at ms-cg.com
Thu May 28 10:22:50 CEST 2009
Hi Tadej,
I had exactly the same problem yesterday and solved it by adding only
those 2 lines to the setup of the main template:
lib.parseFunc_RTE.externalBlocks.table.HTMLtableCells.default >
lib.parseFunc_RTE.externalBlocks.table.HTMLtableCells.default.stdWrap.parseFunc
=< lib.parseFunc
which is basically the same solution as yours but with =< in the second
line.
After reading [1] it rather confuses me but if that's the reason why
your script isn't working, who cares.
Regards,
Daniel
[1]
http://typo3.org/documentation/document-library/core-documentation/doc_core_ts/4.2.0/view/1/2/
Tadej Bregar schrieb:
> Hi,
> I have a TypoScript configuration problem and don't know how to tackle
> it, so I'm asking for some help:
>
> I have successfully cleaned up html code that is generated for
> tt_content records, e.g. using lines in the main TS template:
>
> lib.parseFunc_RTE.externalBlocks.table.HTMLtableCells.default >
> lib.parseFunc_RTE.externalBlocks.table.HTMLtableCells.default.stdWrap.parseFunc
> < lib.parseFunc
> lib.parseFunc_RTE.externalBlocks.table.stdWrap.HTMLparser.tags.table.fixAttrib
> >
> lib.parseFunc_RTE.nonTypoTagStdWrap.encapsLines.addAttributes.P.class >
>
> Now if I edit an article (tt_content) using HTMLArea and insert a table,
> the table cells do not contain <p class="bodytext"> tag, e.g.:
> <td>Blablabla</ td>
>
> But if I edit a news record (tt_news, displaySingle) using HTMLArea and
> insert a table, the table cells do get <p class="bodytext"> tag
> inserted, e.g.
> <td><p class="bodytext">Blablabla</ td>
>
>
> OK, I know how to remove P tag from subheader, e.g.:
> displaySingle {
> subheader_stdWrap.parseFunc < lib.parseFunc_RTE
>
> subheader_stdWrap.parseFunc.nonTypoTagStdWrap.encapsLines.nonWrappedTag >
> }
>
> BUT, those directives are just for subheader_stdWrap, content_stdWrap,
> author_stdWrap etc. etc. There is no "tablecell_stdWrap" .....
>
> How can I get rid of those nasty <p class="bodytext"> tags inside table
> cells ?
>
>
> Thanks for any hint.
>
> Regards,
> Tadej Bregar
>
More information about the TYPO3-english
mailing list