From bf660d15fc20aa7986958ad432ce725372fd74b5 Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Thu, 13 Jul 2023 10:53:30 +0200 Subject: [PATCH] Fix broken category list per post The count created a grouping leading to only one result instead of all categories. --- Configuration/TypoScript/Setup/Page.typoscript | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Configuration/TypoScript/Setup/Page.typoscript b/Configuration/TypoScript/Setup/Page.typoscript index f5a895b..220ec62 100644 --- a/Configuration/TypoScript/Setup/Page.typoscript +++ b/Configuration/TypoScript/Setup/Page.typoscript @@ -61,11 +61,11 @@ page { as = assignedTopics table = sys_category pidInList = 2 - selectFields = sys_category.*, count(sys_category_record_mm.uid_foreign) as count + selectFields = sys_category.* where = sys_category_record_mm.uid_foreign = {page:uid} AND sys_category.parent = 1 where.insertData = 1 leftjoin = sys_category_record_mm ON sys_category_record_mm.uid_local = sys_category.uid - orderBy = count DESC, sys_category.title ASC + orderBy = sys_category.title ASC # Workaround broken workspace manipulation if {