[TASK] Hide word count in indexed_search backend if mysql fulltext is used
[Packages/TYPO3.CMS.git] / typo3 / sysext / indexed_search / Resources / Private / Templates / Administration / Pages.html
1 {namespace is=TYPO3\CMS\IndexedSearch\ViewHelpers}
2
3 <f:layout name="Administration"/>
4
5 <f:section name="Content">
6 <h2>Pages</h2>
7 <f:if condition="{records}">
8 <table class="table table-striped table-hover">
9 <thead>
10 <tr>
11 <th><f:translate key="field.id"/>/<f:translate key="field.type"/></th>
12 <th><f:translate key="field.title"/></th>
13 <th><f:translate key="field.fileSize"/></th>
14 <f:if condition="{extensionConfiguration.useMysqlFulltext} == false">
15 <th><f:translate key="field.wordCount"/></th>
16 </f:if>
17 <th><f:translate key="field.mtime"/></th>
18 <th><f:translate key="field.indexed"/></th>
19 <th><f:translate key="field.updated"/></th>
20 <th><f:translate key="field.parseTime"/></th>
21 <th><f:translate key="field.groups"/></th>
22 <th><f:translate key="field.sub"/></th>
23 <th><f:translate key="field.language"/></th>
24 <th><f:translate key="field.cHash"/></th>
25 <th><f:translate key="field.pHash"/></th>
26 </tr>
27 </thead>
28 <tbody>
29 <f:for each="{records}" as="data">
30 <tr>
31 <td>
32 {data.data_page_id}
33 <f:if condition="{data.data_page_type}">/ {data.data_page_type}</f:if>
34 {data.0}
35 </td>
36 <td>
37 <f:format.crop maxCharacters="30">{data.item_title}</f:format.crop>
38 </td>
39 <td>
40 <f:format.bytes decimals="1">{data.item_size}</f:format.bytes>
41 </td>
42 <f:if condition="{extensionConfiguration.useMysqlFulltext} == false">
43 <td>{data.numberOfWords}</td>
44 </f:if>
45 <td>
46 <is:format.dateTime>{data.item_mtime}</is:format.dateTime>
47 </td>
48 <td>
49 <is:format.dateTime>{data.crdate}</is:format.dateTime>
50 </td>
51 <td>
52 <f:if condition="{date.tstamp}=={date.crdate}">
53 <f:then></f:then>
54 <f:else>
55 <is:format.dateTime>{data.tstamp}</is:format.dateTime>
56 </f:else>
57 </f:if>
58 </td>
59 <td>{data.parsetime}</td>
60 <td>{data.numberOfSections}/{data.grList.0.pcount}/{data.numberOfFulltext}</td>
61 <td>{data.pcount} / {is:format.groupList(groups:data.grList)}</td>
62 <td>{data.sys_language_uid}</td>
63 <td>
64 <f:if condition="{data.cHashParams}">
65 <f:for each="{data.cHashParams}" as="value" key="key">
66 {key}={value}<br>
67 </f:for>
68 </f:if>
69 </td>
70 <td>{data.phash}</td>
71 </tr>
72 </f:for>
73 </tbody>
74 </table>
75 </f:if>
76 </f:section>