[BUGFIX] Show folder meta information next to path 48/55348/2
authorWolfgang Klinger <wolfgang@wazum.com>
Wed, 10 Jan 2018 11:14:40 +0000 (12:14 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 13 Jan 2018 14:39:04 +0000 (15:39 +0100)
Output folder meta information (file count and
total file size) next to the folder path in Filelist again.
Additionally fix a typo in a condition above.

Resolves: #83528
Releases: master, 8.7
Change-Id: I6969966405655d54528059ec937018078caea9d9
Reviewed-on: https://review.typo3.org/55348
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/backend/Classes/Template/Components/MetaInformation.php
typo3/sysext/backend/Resources/Private/Partials/DocHeader.html

index de467f2..0251025 100644 (file)
@@ -157,6 +157,17 @@ class MetaInformation
     }
 
     /**
+     * Returns record additional information
+     *
+     * @return string Record additional information
+     */
+    public function getRecordInformationAdditionalInfo(): string
+    {
+        $recordInformations = $this->getRecordInformations();
+        return $recordInformations['additionalInfo'] ?? '';
+    }
+
+    /**
      * Setting page array
      *
      * @return array Record info
index 0a9e24d..873cceb 100644 (file)
                                </span>
                                <strong>
                                        <f:format.raw>
-                                               {docHeader.metaInformation.recordInformationIcon} {docHeader.metaInformation.recordInformationTitle} <f:if condition="docHeader.metaInformation.recordInformationUid}">[{docHeader.metaInformation.recordInformationUid}]</f:if>
+                                               {docHeader.metaInformation.recordInformationIcon} {docHeader.metaInformation.recordInformationTitle} <f:if condition="{docHeader.metaInformation.recordInformationUid}">[{docHeader.metaInformation.recordInformationUid}]</f:if>
                                        </f:format.raw>
                                </strong>
+                               {docHeader.metaInformation.recordInformationAdditionalInfo}
                        </f:if>
                </div>
        </div>