TYPO3 tt_news conditional [more] link

In a current project i was asked to modify the latest view of tt_news so that the more link is only displayed if needed (that means no bodytext, but can be other condition as well).

After a question on the english newsgroup i got a small hint:

http://typo3.org/documentation/document-library/extension-manuals/tt_news/3.0.1/view/1/4/#id2513502{.broken_link}

Look for „Conditional more link“

plugin.tt_news.displayList.subheader_stdWrap {
    append = TEXT
    append.data = register:newsMoreLink
    append.wrap = <span>|</span>
    append.if.isTrue.field = bodytext
}

After some research i found out that it’s also possible to ensure that the tt_news title is not linked. Therefore I used a not documented register.

plugin.tt_news.displayLatest.subheader_stdWrap {
    append = TEXT
    append.data = register:newsMoreLink
    append.wrap = <span> |</span>
    append.if.isTrue.field = bodytext
    parseFunc < lib.parseFunc_RTE
    stripHtml = 0
    removeBadHTML = 1
}
plugin.tt_news.displayLatest.title_stdWrap {
    typolink.parameter.data = register:newsMoreLink_url
    typolink.parameter.if.isTrue.field = bodytext
}

It’s pretty cool to have a twitter like view if there is not so much information in a newsarticle. To see a live example take a look on http://dil.inf.tu-dresden.de