Skip to content
Snippets Groups Projects

Feature latest news slider

Merged Michael Kessler requested to merge feature_latestNewsSlider into master
1 file
+ 15
5
Compare changes
  • Side-by-side
  • Inline
<f:link.page pageUid="{newsMetaData.news.uid}">
<div class="sg-slide-news-content">
<div class="tx-sgnews-teaser-title">
{headerTag -> f:format.raw()}
{newsMetaData.news.subtitleWithFallbackToTitle}
{closingHeaderTag -> f:format.raw()}
<div class="tx-sgnews-teaser-meta">
<f:alias map="{authorCount: '{newsMetaData.news.newsAuthor -> f:count()}'}">
<f:if condition="{authorCount}">
<span class="author">
<f:for each="{newsMetaData.news.newsAuthor}" as="newsAuthor" iteration="iterator">
<f:alias map="{divider: '{f:if(condition: \'{iterator.cycle} < {authorCount}\', then: \',\')}'}">
<f:if condition="{newsAuthor.name}">
{newsAuthor.name}{divider}
</f:if>
</f:alias>
</f:for>
</span>
</f:if>
</f:alias>
<span class="date">
<f:format.date
format="{f:translate(key:'frontend.dateformat')}">{newsMetaData.news.lastUpdated}</f:format.date>
</span>
<span class="category">
{newsMetaData.category.subtitleWithFallbackToTitle}
</span>
<f:if condition="{newsMetaData.news.tags}">
<span class="tags">
<f:for each="{newsMetaData.news.tags}" as="tag" iteration="it">
{tag.title}<f:if condition="{it.isLast}"><f:else>, </f:else></f:if>
</f:for>
</span>
</f:if>
</div>
</div>
<div class="tx-sgnews-teaser-description">
<f:format.html>{newsMetaData.news.description}</f:format.html>
</div>
</div>
</f:link.page>
Loading