Zen TYPO3 Forum

Our TYPO3 forum is available for freelancers, professionals and clients new to TYPO3 to discuss Basic TYPO3 templating, Typoscript, extension installation, administration and help with subscription templates. Please register for an account to post.

All Categories > TYPO3 General Discussion > Templates > Remove <p> tags in RTE Table
Total Posts: 2 - Pages (1): [1]
Author: mediatech
Posted: Jul 29 2007 - 05:51 PM
Subject: re: Remove <p> tags in RTE Table
I feel your pain.I've pulled my hair out with TSREF syntax in the past, mostly because I have never had a lot of free time to learn it. I just ran a Google search for "tt_content.table. bodytext parseFunc " and didn't find a snippet either.

My recommendation is to use CSS to render the P tags useless within tables until a better option is found. Something like this should work.

P, td {
margin:0;padding:0;
}


Gregory Remington
Mediatech Consulting, Inc.
Phone : +1 (760) 525-1770 . Fax: +1 (760) 542-1990 . Skype: gremington
Author: Jfortin
Posted: Jul 26 2007 - 12:30 PM
Subject: Remove <p> tags in RTE Table
I am trying to find a way to remove the <P> tags that TYPO3 automatically inserts in tables inserted via the RTE. [example: <tr><td><p class="bodytext"> ].
I know how to remove the <P> tags for Everything, but I only want the <p> tags removed inside the table, not the rest of my content on a page.

I have searched the TYPO3 documentation, Forums and googled it. I have found information pointing me in the right direction, but I don't understand the TSREF documentation enough to figure out exactly what I need to do.

I found a post in the TYPO3 forums: http://support.typo3.org:8080/jive/thread.jspa?messageID=273422&#273422 that says " So go and find in the object browser where parseFunc is for your content item (dependent upon the type, and if its table put in via the rte then
that is a text content type, not a table content type.) And then with a copy of TSref in hand look at what parseFunc is doing with the content when it renders it, and tell it not to wrap lines in tables with a paragraph tag.
"

Unfortunately, I can't figure out the correct syntax that will remove the <p> tags from within the table content only, and not the rest of my content on the page. I want the <P> tags preserved when the content manager uses the <enter> key.

Any help would be so greatly appreciated. I feel like the answer is right at my finger tips but the TSREF document really isn't helping.

Thanks !
Total Posts: 2 - Pages (1): [1]
You must login to post a message to this conference.

 

CHC Forum provided by Cast Iron Coding

TYPO3 Support