ListFeatures.html 1.2 KB
Newer Older
Christian Knauf's avatar
Christian Knauf committed
1
2
3
4
<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">
5
6
7
        <f:if condition="{featureArea}">
            <f:render partial="Feature/ShowFeatureArea.html" arguments="{featureArea:featureArea}"/>
        </f:if>
Christian Knauf's avatar
Christian Knauf committed
8
9
        <f:if condition="{features}">
            <f:then>
10
11
12
13
14
15
16
17
18
19
20
                <f:for each="{features}" as="feature" iteration="i">
                    <f:if condition="{i.isLast}">
                        <f:then>
                            <f:render partial="Feature/ShowFeature.html" arguments="{_all}"/>
                        </f:then>
                        <f:else>
                            <div class="border-bottom mb-5 pb-5">
                                <f:render partial="Feature/ShowFeature.html" arguments="{_all}"/>
                            </div>
                        </f:else>
                    </f:if>
Christian Knauf's avatar
Christian Knauf committed
21
22
23
24
25
26
27
28
29
30
31
                </f:for>
            </f:then>
            <f:else>
                <div class="row">
                    <div class="col-12">No Feature found!</div>
                </div>
            </f:else>
        </f:if>
    </div>
</f:section>
</html>