Skip to content

Instantly share code, notes, and snippets.

Created June 7, 2011 14:54
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save NiklasJordan/1012407 to your computer and use it in GitHub Desktop.
More-Link wrappen
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 Sven Wolfermann (
plugin.tt_news.displayLatest {
subheader_stdWrap {
stripHtml = 1
crop = 150 | ... | 1
ifEmpty.field = bodytext
# the "more" link is directly appended to the subheader
append = TEXT = register:newsMoreLink
append.wrap = <p class="news-latest-morelink">|</p>
# display the "more" link only if the field bodytext contains something
append.if.isTrue.field = bodytext
outerWrap = <p>|</p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment