[TYPO3-english] tt_news: clear general_stdWrap only from the teaser

Benjamin Mack benni at typo3.org
Mon Mar 2 11:21:18 CET 2009


Hey Katja,

yes. I don't like that behaviour as well. This is how I solve it:

plugin.tt_news {
	# clear the general_stdWrap that is added to every field
	general_stdWrap >

	# Add the RTE parsing to the content field.
	displaySingle.content_stdWrap.parseFunc < lib.parseFunc_RTE
	displayList.content_stdWrap < lib.parseFunc_RTE
}

It basically adds the default functionality "general_stdWrap" to every 
content marker in the list and single view.

Btw: Your example below is not working because of this:

 > displaySingle {
 > subheader_stdWrap.wrap = <h3>|</h3>
 > content_stdWrap = <p class="bodytext">|</p>
 > }

it has to be
   content_stdWrap.wrap

All the best,
Benni

On 02.03.2009 10:06 Uhr, Katja Lampela wrote:
> Hi,
>
> I'm really sorry for cross-posting - but I think I'm missing the obvious
> solution for this and I guess there are many more readers here than in
> tt_news list..?
>
> I'm trying a simple task: to clear the general wrap <p class="bodytext">
> from my news teasers (subheader) but leave it in the news single, but I
> can't get it working.
>
> The following clears the p tag all together from the news, but adding it
> into the single doesn't work in following way. There is a wrap for
> everything else in default setup, but bodytext and I don't get any
> effect from the content_stdWrap.
>
> So is there a way to add the p tag to the single news bodytext? Or
> should I do it somehow the other way around.. If I delete the
> general_stdWrap part the p tag is there again in the teaser even though
> there is the subheader_stdWrap.wrap >
>
>
> plugin.tt_news {
> general_stdWrap >
> displayList {
> subheader_stdWrap.wrap >
> subheader_stdWrap.wrap = |
> subheader_stdWrap.stripHtml = 1
> }
> displaySingle {
> subheader_stdWrap.wrap = <h3>|</h3>
> content_stdWrap = <p class="bodytext">|</p>
> }
> }
>
>
> plugin.tt_news.content_stdWrap = <p class="bodytext">|</p>
> doesn't work either.
>
> Any help much appreciated,
> Katja



More information about the TYPO3-english mailing list