|
13 | 13 | data-namespace-typo3-fluid="true"> |
14 | 14 |
|
15 | 15 | <div class="tx-dlf-listview"> |
16 | | - <h2 class="tx-dlf-listview-label">{collection.label}</h2> |
| 16 | + <f:if condition="{collection}"> |
| 17 | + <f:then> |
| 18 | + <h2 class="tx-dlf-listview-label">{collection.label}</h2> |
17 | 19 |
|
18 | | - <f:if condition="{collection.thumbnail}"> |
19 | | - <div class="tx-dlf-collection-thumbnail"> |
20 | 20 | <f:if condition="{collection.thumbnail}"> |
21 | | - <f:image image="{collection.thumbnail}" alt="{f:translate(key: 'thumbnail')} {collection.label}" title="{collection.label}" maxWidth="250" /> |
22 | | - </f:if> |
23 | | - </div> |
24 | | - </f:if> |
| 21 | + <div class="tx-dlf-collection-thumbnail"> |
| 22 | + <f:if condition="{collection.thumbnail}"> |
| 23 | + <f:image image="{collection.thumbnail}" alt="{f:translate(key: 'thumbnail')} {collection.label}" title="{collection.label}" maxWidth="250" /> |
| 24 | + </f:if> |
| 25 | + </div> |
| 26 | + </f:if> |
25 | 27 |
|
26 | | - <f:if condition="{collection.description}"> |
27 | | - <div class="tx-dlf-collection-description"> |
28 | | - <f:format.html>{collection.description}</f:format.html> |
29 | | - </div> |
30 | | - </f:if> |
| 28 | + <f:if condition="{collection.description}"> |
| 29 | + <div class="tx-dlf-collection-description"> |
| 30 | + <f:format.html>{collection.description}</f:format.html> |
| 31 | + </div> |
| 32 | + </f:if> |
31 | 33 |
|
32 | | - <f:variable name="action" value="showSorted" /> |
33 | | - <f:variable name="controller" value="Collection" /> |
34 | | - <f:render partial="ListView/SortingForm" arguments="{_all}" /> |
35 | | - <f:render partial="ListView/Results" arguments="{_all}" /> |
| 34 | + <f:variable name="action" value="showSorted" /> |
| 35 | + <f:variable name="controller" value="Collection" /> |
| 36 | + <f:render partial="ListView/SortingForm" arguments="{_all}" /> |
| 37 | + <f:render partial="ListView/Results" arguments="{_all}" /> |
| 38 | + </f:then> |
| 39 | + <f:else> |
| 40 | + <h2 class="tx-dlf-listview-label">{f:translate(key: 'collection.missing')}</h1> |
| 41 | + </f:else> |
36 | 42 |
|
| 43 | + </f:if> |
37 | 44 | </div> |
38 | 45 |
|
39 | 46 | </html> |
0 commit comments