TypoScript

get rid of tt_news wraps

Mostly the "CSS-based tmpl (tt_news)" is used as a base for the extension tt_news. 

But some of the configurations are unpropitious for some projects. For example the wraps around the subheader of a news.

problem "wraps around subheader"

Perhaps someone knows this problem too. The output of a newsentry has a warp around the subheader like:

 

 <p class="bodytext">**</p> 

But it is hard to find out the responsible TS property.

Solution:

Some of the newsfields are transformed by the "plugin.tt_news.general_stdWrap" wrap. This is the reason why, even if the wrap for the subheader is empty,  the subheader gets wrapped.

Tho following TS-Code would be a solution:

//clear subheader Wrap for Single and Latest view
plugin.tt_news.displayLatest.subheader_stdWrap.wrap = |
plugin.tt_news.displaySingle.subheader_stdWrap.wrap = |
//clear general wrap
plugin.tt_news.general_stdWrap>

// Now it is necessary to set the parseFunc for the RTE field:
plugin.tt_news.displaySingle.content_stdWrap.parseFunc < lib.parseFunc_RTE

blog comments powered by Disqus
  1. cyprian.pl http://pi2.pl 09.10.06 10:01

    Thanks, that was very halpful!

Last Tweets (follow)

blogroll