[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 / Statistic.html
index e5da39b..9dd727b 100644 (file)
                                                                <th>
                                                                        <f:translate key="field.content" />
                                                                </th>
-                                                               <th>
-                                                                       <f:translate key="field.words" />
-                                                               </th>
+                                                               <f:if condition="{extensionConfiguration.useMysqlFulltext} == false">
+                                                                       <th>
+                                                                               <f:translate key="field.words" />
+                                                                       </th>
+                                                               </f:if>
                                                        </f:case>
                                                        <f:defaultCase>
-                                                               <th>
-                                                                       <f:translate key="field.wordCount"/>
-                                                               </th>
+                                                               <f:if condition="{extensionConfiguration.useMysqlFulltext} == false">
+                                                                       <th>
+                                                                               <f:translate key="field.wordCount"/>
+                                                                       </th>
+                                                               </f:if>
                                                                <th>
                                                                        <f:translate key="field.fileSize"/>
                                                                </th>
                                                                                                        <td>
                                                                                                                {l.fulltextData.fulltextdata}
                                                                                                        </td>
-                                                                                                       <td>
-                                                                                                               <f:for each="{l.allWords}" as="w">
-                                                                                                                       {w}
-                                                                                                               </f:for>
-                                                                                                               <br><br>
-                                                                                                               <em>{f:translate(key:'administration.statistics.count')}: {f:count(subject:l.allWords)}</em>
-                                                                                                       </td>
+                                                                                                       <f:if condition="{extensionConfiguration.useMysqlFulltext} == false">
+                                                                                                               <td>
+                                                                                                                       <f:for each="{l.allWords}" as="w">
+                                                                                                                               {w}
+                                                                                                                       </f:for>
+                                                                                                                       <br><br>
+                                                                                                                       <em>{f:translate(key:'administration.statistics.count')}: {f:count(subject:l.allWords)}</em>
+                                                                                                               </td>
+                                                                                                       </f:if>
                                                                                                </f:case>
                                                                                                <f:defaultCase>
-                                                                                                       <td>{l.wordCount}</td>
+                                                                                                       <f:if condition="{extensionConfiguration.useMysqlFulltext} == false">
+                                                                                                               <td>{l.wordCount}</td>
+                                                                                                       </f:if>
                                                                                                        <td>
                                                                                                                <f:format.bytes decimals="1">{l.item_size}</f:format.bytes>
                                                                                                        </td>