SolrResults.html 2.04 KB
Newer Older
Thomas Löffler's avatar
Thomas Löffler committed
1
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
2
<f:render section="{type}" arguments="{_all}" />
Thomas Löffler's avatar
Thomas Löffler committed
3
4

<f:section name="pages">
5
	<h3>Pages</h3>
6
7
8
	<f:if condition="{documents}">
		<f:then>
			<f:for each="{documents}" as="document">
9
10
				<a class="small" href="{document.fields.url}">
					<p class="mb-3">
11
						<f:format.crop maxCharacters="65">{document.fields.title} &mdash; {document.fields.content}</f:format.crop>
12
13
					</p>
				</a>
14
15
16
			</f:for>
		</f:then>
		<f:else>
17
			<f:render section="nothingfound" />
18
19
		</f:else>
	</f:if>
Thomas Löffler's avatar
Thomas Löffler committed
20
21
</f:section>
<f:section name="tx_news_domain_model_news">
22
	<h3>News</h3>
23
24
25
	<f:if condition="{documents}">
		<f:then>
			<f:for each="{documents}" as="document">
26
27
28
29
30
				<a class="small" href="{document.fields.url}">
					<p class="mb-3">
						{document.fields.datetime_intS -> f:format.date(format: 'd.m.Y')} &mdash; {document.fields.title}
					</p>
				</a>
31
32
33
			</f:for>
		</f:then>
		<f:else>
34
			<f:render section="nothingfound" />
35
36
		</f:else>
	</f:if>
Thomas Löffler's avatar
Thomas Löffler committed
37
38
</f:section>
<f:section name="tx_sfeventmgt_domain_model_event">
39
	<h3>Events</h3>
40
41
42
	<f:if condition="{documents}">
		<f:then>
			<f:for each="{documents}" as="document">
43
44
45
46
47
48
49
50
				<a class="small" href="{document.fields.url}">
					<p class="mb-3">
						{document.fields.startdate_intS -> f:format.date(format: 'd.m.Y')} &mdash; {document.fields.title}
					</p>
				</a>
			</f:for>
		</f:then>
		<f:else>
51
			<f:render section="nothingfound" />
52
53
54
55
		</f:else>
	</f:if>
</f:section>
<f:section name="tx_terfe2_domain_model_extension">
56
	<h3>Extensions</h3>
57
58
59
	<f:if condition="{documents}">
		<f:then>
			<f:for each="{documents}" as="document">
60
				<a class="small" href="https://extensions.typo3.org/extension/{document.fields.extensionKey_stringS}">
61
62
63
64
					<p class="mb-3">
						{document.fields.extensionKey_stringS} &mdash; {document.fields.title}
					</p>
				</a>
65
66
67
			</f:for>
		</f:then>
		<f:else>
68
			<f:render section="nothingfound" />
69
70
		</f:else>
	</f:if>
Thomas Löffler's avatar
Thomas Löffler committed
71
</f:section>
72
73
74
75
76
77

<f:section name="nothingfound">
	<p>
		<small>Nothing found.</small>
	</p>
</f:section>
Thomas Löffler's avatar
Thomas Löffler committed
78
</html>