[BUGFIX] Add sorting to menu of categorized content 88/56688/3
authorGeorg Ringer <georg.ringer@gmail.com>
Mon, 16 Apr 2018 14:27:58 +0000 (16:27 +0200)
committerTymoteusz Motylewski <t.motylewski@gmail.com>
Tue, 24 Apr 2018 11:01:43 +0000 (13:01 +0200)
Sort content elements of menu type "categorized content" by the
sorting value.

This improves the output if all content elements are from the same page.

Resolves: #84739
Releases: master
Change-Id: Ib1701c8403f1e41fbdc9dd895a262c692cd73827
Reviewed-on: https://review.typo3.org/56688
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Tested-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Kay Strobach <typo3@kay-strobach.de>
Tested-by: Kay Strobach <typo3@kay-strobach.de>
Reviewed-by: Jan Stockfisch <jan.stockfisch@googlemail.com>
Tested-by: Jan Stockfisch <jan.stockfisch@googlemail.com>
Reviewed-by: Joerg Boesche <typo3@joergboesche.de>
Tested-by: Joerg Boesche <typo3@joergboesche.de>
Reviewed-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Tested-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
typo3/sysext/fluid_styled_content/Configuration/TypoScript/ContentElement/MenuCategorizedContent.txt

index 20a0515..c84deac 100644 (file)
@@ -18,6 +18,7 @@ tt_content.menu_categorized_content {
             join.wrap = sys_category_record_mm ON uid = sys_category_record_mm.uid_foreign AND sys_category_record_mm.uid_local IN(|)
             where.data = field:category_field
             where.wrap = tablenames='tt_content' and fieldname='|'
+            orderBy = tt_content.sorting
             as = content
             dataProcessing {
                 10 = TYPO3\CMS\Frontend\DataProcessing\FilesProcessor