Skip to content

Instantly share code, notes, and snippets.

@rpflamm
Created June 10, 2016 13:18
Show Gist options
  • Save rpflamm/acfe40b94c27312417011056c5517b26 to your computer and use it in GitHub Desktop.
Save rpflamm/acfe40b94c27312417011056c5517b26 to your computer and use it in GitHub Desktop.
more link in teaser
<f:if condition="{newsItem.teaser}">
<f:then>
<span itemprop="description"><f:format.html>{newsItem.teaser -> f:format.crop(maxCharacters: '{settings.cropMaxCharacters}', respectWordBoundaries:'1')} <n:link newsItem="{newsItem}" settings="{settings}" class="more" title="{newsItem.title}"><f:translate key="more-link"/></n:link></f:format.html></span>
</f:then>
<f:else>
<span itemprop="description"><f:format.html>{newsItem.bodytext -> f:format.crop(maxCharacters: '{settings.cropMaxCharacters}', respectWordBoundaries:'1')} <n:link newsItem="{newsItem}" settings="{settings}" class="more" title="{newsItem.title}"><f:translate key="more-link"/></n:link></f:format.html></span>
</f:else>
</f:if>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment