[TYPO3-ttnews] no "more" link when there is only NEWS_SUBHEADER

Michael Haugg michael.haugg at memmingen.de
Fri Mar 2 11:42:05 CET 2007


Hello Pawel,

with the help of Lars Brinkmann (German newsgroup) I was able to remove 
the [more]-link if there is no bodytext.

plugin.tt_news {
  displayList.subheader_stdWrap {
    append = TEXT
    append.data = register:newsMoreLink
    append.wrap = <div class="news-list-morelink">|</div>
    append.if.isTrue.field = bodytext
  }
  displayLatest.subheader_stdWrap {
    append = TEXT
    append.data = register:newsMoreLink
    append.wrap = <div class="news-latest-morelink">|</div>
    append.if.isTrue.field = bodytext
  }
}

Now you have to remove the ###MORE### marker in your HTML-tt_news_template.

But there still remains one Problem: the News-Title is still linked to 
the Single-News page. I found no way to disable this behaviour.

I agree that it should be by default, that the [more]- and the 
title-link should appear only if needed.

Regards,

Michael


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