Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
services
T
t3o sites
typo3.org
typo3.org
Commits
c8755072
Commit
c8755072
authored
Jul 15, 2017
by
Thomas Löffler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds latest events template for starting page
parent
5ed80bb6
Pipeline
#1637
passed with stages
in 4 minutes and 42 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
20 deletions
+44
-20
html/typo3conf/ext/t3org_layout/Configuration/PageTS/SfEventMgt.txt
...conf/ext/t3org_layout/Configuration/PageTS/SfEventMgt.txt
+3
-0
html/typo3conf/ext/t3org_layout/Resources/Private/Extensions/SfEventMgt/Templates/Event/List.html
...s/Private/Extensions/SfEventMgt/Templates/Event/List.html
+40
-19
html/typo3conf/ext/t3org_layout/ext_localconf.php
html/typo3conf/ext/t3org_layout/ext_localconf.php
+1
-1
No files found.
html/typo3conf/ext/t3org_layout/Configuration/PageTS/SfEventMgt.txt
0 → 100644
View file @
c8755072
tx_sfeventmgt.templateLayouts {
1 = Latest view
}
html/typo3conf/ext/t3org_layout/Resources/Private/Extensions/SfEventMgt/Templates/Event/List.html
View file @
c8755072
<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>
html/typo3conf/ext/t3org_layout/ext_localconf.php
View file @
c8755072
<?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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment