[BUGFIX] Indexed search broken due to wrong namespace in template
[Packages/TYPO3.CMS.git] / typo3 / sysext / indexed_search / Resources / Private / Templates / Search / Search.html
1 {namespace is=TYPO3\CMS\IndexedSearch\ViewHelpers}
2
3 <f:for each="{resultsets}" as="result">
4 <f:if condition="{result.categoryTitle}">
5 <h1 class="tx-indexedsearch-category">{result.categoryTitle}</h1>
6 </f:if>
7
8 <!-- show the info what was searched for -->
9 <f:for each="{searchWords}" as="searchWord" key="key">
10 <f:if condition="{key} > 0">
11 <f:then>
12 <f:translate key="searchFor.{searchWord.oper}" />&nbsp;{searchWord.sword}
13 </f:then>
14 <f:else>
15 <f:translate key="searchFor" />&nbsp;{searchWord.sword}
16 </f:else>
17 </f:if>
18 </f:for>
19
20 <!-- show the info in which section was searched for -->
21 {result.searchedInSectionInfo}
22 <f:if condition="{result.count} > 0">
23 <f:then>
24 <div class="tx-indexedsearch-browsebox">
25 <!-- render the anchor-links to the sections inside the displayed result rows -->
26 <f:if condition="{result.affectedSections}">
27 <div class="tx-indexedsearch-sectionlinks">
28 <table cellpadding="0" cellspacing="0" border="0" summary="Result links">
29 <f:for each="{result.affectedSections}" as="sectionData" key="sectionId">
30 <tr>
31 <td width="100%">--&gt;&nbsp;
32 <a href="#anchor_{sectionId}">
33 <f:if condition="{sectionData.0}">
34 <f:then>{sectionData.0}</f:then>
35 <f:else><f:translate key="unnamedSection" /></f:else>
36 </f:if>
37 &nbsp;({sectionData.1}&nbsp;<f:translate key="{f:if(condition: '{sectionData.1} > 1', then: 'word_pages', else: 'word_pages')}" />)
38 </a>
39 </td>
40 </tr>
41 </f:for>
42 </table>
43 </div>
44 </f:if>
45 <p>
46 <is:pageBrowsingResults numberOfResults="{result.count}" currentPage="{searchData.pointer}" resultsPerPage="{searchData.results}" />
47 {result.sectionText}
48 </p>
49 <is:pageBrowsing maximumNumberOfResultPages="{settings.search.page_links}" numberOfResults="{result.count}" currentPage="{searchData.pointer}" resultsPerPage="{result.pageBrowser.resultsPerPage}" />
50 </div>
51 <f:for each="{result.rows}" as="row">
52 <f:if condition="{row.isSectionHeader}">
53 <f:then>
54 <div id="{row.anchorId}" class="tx-indexedsearch-sectionhead">
55 <h2 class="tx-indexedsearch-title">{row.sectionTitle} <span class="tx-indexedsearch-result-count">{row.numResultRows} <f:translate key="{f:if(condition: '{row.numResultRows} > 1', then: 'result.pages', else: 'result.page')}" /></span></h2>
56 </div>
57 </f:then>
58 <f:else>
59 <f:render partial="Searchresult" arguments="{row: row}" />
60 </f:else>
61 </f:if>
62 </f:for>
63 <div class="tx-indexedsearch-browsebox">
64 <is:pageBrowsing numberOfResults="{result.count}" maximumNumberOfResultPages="{settings.search.page_links}" currentPage="{searchData.pointer}" resultsPerPage="{searchData.results}" />
65 </div>
66 </f:then>
67 <f:else>
68 <f:translate key="result.noResult" />
69 </f:else>
70 </f:if>
71 </f:for>