More-Link wrappen


/ Published in: TYPO3
Save to your folder(s)

Dieses Typoscript wrappt den More-Link und umschließt ihn mit dem <p>-Tag, sowie fügt ihm die Klasse ".news-latest-morelink" bei.

Entwickelt von <a href="http://www.maddesigns.de">Sven Wolfermann</a>.


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.