Skip to content

Instantly share code, notes, and snippets.

@ursbraem

ursbraem/Events.html

Last active Nov 4, 2015
Embed
What would you like to do?
{namespace n=Tx_News_ViewHelpers}
{namespace stubr=STUBR\Customvhs\ViewHelpers}
<time class="event-date" datetime="<n:format.date format="{f:translate(key:'dateTimeFormatMachine')}">{newsItem.datetime}</n:format.date>">
<f:if condition="{settings.forcelocale}==true">
<stubr:switchlocale new="de_CH.UTF-8" />
</f:if>
<n:format.date format="{f:translate(key:'dateTimeFormatHumanWeekday')}">{newsItem.datetime}</n:format.date>
<f:if condition="{settings.forcelocale}==true">
<stubr:switchlocale new="fr_CH.UTF-8" />
</f:if>
</time>
<p class="sidebar-content">
<n:link newsItem="{newsItem}" settings="{settings}" title="{newsItem.txNewscustomLinktitle}" >{newsItem.title}</n:link>
</p>
@ursbraem

This comment has been minimized.

Copy link
Owner Author

@ursbraem ursbraem commented Nov 4, 2015

Catches a TS setting and forces another locale quickly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment