Skip to content

Instantly share code, notes, and snippets.

@NiklasJordan
Created June 7, 2011 14:54
Show Gist options
  • Save NiklasJordan/1012407 to your computer and use it in GitHub Desktop.
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 (http://www.maddesigns.de)
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
append.data = 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