[TYPO3-ttnews] tt_news LATEST view and teaser

Julien P. privacy at nospam.invalid
Tue Aug 21 09:50:03 CEST 2007


Ok I found, with this code:

plugin.tt_news {
  # unset general_stdWrap
  general_stdWrap >
  displayList {
    # add a wrap to the subheader
    subheader_stdWrap.wrap = <p class="bodytext">|</p>
  }
  displayLatest {
    # add a wrap to the subheader
    subheader_stdWrap.wrap = <p class="bodytext">|</p>
  }
  displaySingle {
    # add parseFunc to the subheader
    subheader_stdWrap.parseFunc < lib.parseFunc_RTE
    # prevent adding of <p> tags
    subheader_stdWrap.parseFunc.nonTypoTagStdWrap.encapsLines.nonWrappedTag 
 >
    # add parseFunc to the bodytext
    content_stdWrap.parseFunc < lib.parseFunc_RTE
    # add parseFunc to the links field
    linksItem_stdWrap.parseFunc < lib.parseFunc_RTE
    # prevent adding of <p> tags
    linksItem_stdWrap.parseFunc.nonTypoTagStdWrap.encapsLines.nonWrappedTag 
 >
  }
}

"Julien P." <privacy at nospam.invalid> a écrit dans le message de news: 
mailman.1.1187680663.9905.typo3-project-tt-news at lists.netfielders.de...
> Hi,
>
> In LATEST view, tt_news removes all html tags, such as br, pictures, and 
> so on. This is really fine. But <p> tags remains, so if a news has been 
> written using <p> tags instead of <br> ones, those tags are not removed 
> from LATEST view.
>
> Same with LIST view.
>
> Is there a way to remove <p> tags as well from this LIST or LATEST view?
>
> Thanks
> 




More information about the TYPO3-project-tt-news mailing list