[TASK] Hide "Group by page" if only one page is shown in EXT:belog 18/55718/3
authorGianluigi Martino <gmartino27@gmail.com>
Wed, 14 Feb 2018 15:14:49 +0000 (16:14 +0100)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Thu, 15 Feb 2018 05:51:17 +0000 (06:51 +0100)
It is unnecessary to show the "Group by page" checkbox if "This page" is
selected in the "Depth" dropdown.
Thus, the checkbox is hidden in that case.

Resolves: #83896
Releases: master, 8.7
Change-Id: Idd3e0252c6bb06d2442ed4db95056e1e6d292c6c
Reviewed-on: https://review.typo3.org/55718
Reviewed-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Tested-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
typo3/sysext/belog/Resources/Private/Partials/Content/Filter.html

index a828245..2b284a2 100644 (file)
                />
        </div>
 
-       <div class="form-group">
-               <label for="belog-group"><f:translate key="groupByPage" /></label>
-               <f:form.checkbox
-                       property="groupByPage"
-                       value="1"
-                       additionalAttributes="{onchange : 'submit()'}"
-                       id="belog-group"
-               />
-       </div>
+       <f:if condition="{constraint.depth} > 0">
+               <div class="form-group">
+                       <label for="belog-group"><f:translate key="groupByPage" /></label>
+                       <f:form.checkbox
+                               property="groupByPage"
+                               value="1"
+                               additionalAttributes="{onchange : 'submit()'}"
+                               id="belog-group"
+                       />
+               </div>
+       </f:if>
 
        <f:comment>
                Date time fields for manual date selection