Commit 031312be authored by Tomas Norre Mikkelsen's avatar Tomas Norre Mikkelsen

Merge branch '81-create-events-latest-template-for-start-page' into 'develop'

Resolve "Create events latest template for start page"

Closes #81

See merge request !73
parents 5ed80bb6 c8755072
Pipeline #1657 passed with stages
in 4 minutes and 4 seconds
tx_sfeventmgt.templateLayouts {
1 = Latest view
}
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<f:layout name="Default" />
<f:section name="main">
<div class="container">
<div class="row">
<div class="col-md-8">
<div id="accordion" role="tablist" aria-multiselectable="true">
<f:widget.paginate objects="{events}" as="paginatedEvents">
<f:for each="{paginatedEvents}" as="event">
<f:render partial="Event/ListItem" arguments="{_all}" />
</f:for>
</f:widget.paginate>
</div>
<f:if condition="{settings.templateLayout} == 1">
<f:then>
<div class="latestEvents">
<f:for each="{events}" as="event">
<div class="calendar-event">
<span class="calendar-day">{event.startdate -> f:format.date(format:'d')}</span>
<span class="calendar-month">{event.startdate -> f:format.date(format:'M')}</span>
<span class="calendar-month">{event.startdate -> f:format.date(format:'Y')}</span>
</div>
<div class="event-text">
<h3 class="event-title">{event.title}</h3>
<p>{event.location.title}<br>{event.location.zip} {event.location.city}<br>{event.location.country}</p>
</div>
</f:for>
</div>
<div class="col-md-4">
<div class="card card-size-large">
<f:render section="Filter" arguments="{_all}" />
</f:then>
<f:else>
<div class="container">
<div class="row">
<div class="col-md-8">
<div id="accordion" role="tablist" aria-multiselectable="true">
<f:widget.paginate objects="{events}" as="paginatedEvents">
<f:for each="{paginatedEvents}" as="event">
<f:render partial="Event/ListItem" arguments="{_all}" />
</f:for>
</f:widget.paginate>
</div>
</div>
<div class="col-md-4">
<div class="card card-size-large">
<f:render section="Filter" arguments="{_all}" />
</div>
</div>
</div>
</div>
</div>
</div>
<f:link.action action="list" controller="Event">
<f:translate key="event.allEvents" />
</f:link.action>
<f:link.action action="list" controller="Event">
<f:translate key="event.allEvents" />
</f:link.action>
</f:else>
</f:if>
</f:section>
<f:section name="Filter">
......@@ -44,4 +64,5 @@
</option>
</f:for>
</f:form.select>
</f:section>
\ No newline at end of file
</f:section>
</html>
<?php
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
'<INCLUDE_TYPOSCRIPT: source="FILE:EXT:' . $_EXTKEY . '/Configuration/PageTS/Linkhandler.txt">'
'<INCLUDE_TYPOSCRIPT: source="DIR:EXT:' . $_EXTKEY . '/Configuration/PageTS/" extensions="txt">'
);
// url index.php?eID=SolrSuggest&term=sdfsdfsdf
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment