Skip to content

Instantly share code, notes, and snippets.



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

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