[TYPO3-ttnews] Hopefully a simple question

Kay Strobach typo3 at kay-strobach.de
Wed Jan 5 20:30:38 CET 2011


Hello Robert,

> Example:
> 
> plugin.tt_news.displayList.subheader_stdWrap {
>   append = TEXT
>   append.data = register:newsMoreLink
>   append.wrap = <span class="myclass">|</span>
>   append.if.isTrue.field = bodytext
> }
> 
Perfectly,using the following code shows the html as well:

  plugin.tt_news.displayLatest.subheader_stdWrap {
    append = TEXT
    append.data = register:newsMoreLink
    append.wrap = <span class="myclass">&nbsp;|</span>
    append.if.isTrue.field = bodytext
    parseFunc < lib.parseFunc_RTE
    stripHtml = 0
    removeBadHTML = 1
  }

After some research in the Code i found out the following to make the
news title conditional linked as well:

  plugin.tt_news.displayLatest.title_stdWrap {
    typolink.parameter.data = register:newsMoreLink_url
    typolink.parameter.if.isTrue.field = bodytext
  }

Thanks a lot
Kay


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