Created
June 7, 2011 14:54
-
-
Save NiklasJordan/1012407 to your computer and use it in GitHub Desktop.
More-Link wrappen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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