Posted By

kopfaction on 05/27/11


Tagged

link news more ttnews weiterlesen


Versions (?)

More-Link wrappen


 / Published in: TYPO3
 

Dieses Typoscript wrappt den More-Link und umschließt ihn mit dem

-Tag, sowie fügt ihm die Klasse ".news-latest-morelink" bei.

Entwickelt von Sven Wolfermann.

  1. plugin.tt_news.displayLatest {
  2. subheader_stdWrap {
  3. stripHtml = 1
  4. crop = 150 | ... | 1
  5. ifEmpty.field = bodytext
  6.  
  7. # the "more" link is directly appended to the subheader
  8. append = TEXT
  9. append.data = register:newsMoreLink
  10. append.wrap = <p class="news-latest-morelink">|</p>
  11. # display the "more" link only if the field bodytext contains something
  12. append.if.isTrue.field = bodytext
  13.  
  14. outerWrap = <p>|</p>
  15. }
  16. }

Report this snippet  

You need to login to post a comment.