From 09c30dc76662d339a6ab5b048b96c77ec43a8ca2 Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Fri, 6 Mar 2020 15:17:24 +0100 Subject: [PATCH] List blog posts ordered by published date --- .../ContentElements/MenuAbstract.typoscript | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/Configuration/TypoScript/Setup/ContentElements/MenuAbstract.typoscript b/Configuration/TypoScript/Setup/ContentElements/MenuAbstract.typoscript index 4e62371..1b7442e 100644 --- a/Configuration/TypoScript/Setup/ContentElements/MenuAbstract.typoscript +++ b/Configuration/TypoScript/Setup/ContentElements/MenuAbstract.typoscript @@ -9,7 +9,11 @@ tt_content.menu_abstract { equals.field = layout } special = directory - special.value.field = pages + special { + value.field = pages + sorting = lastUpdated + order = desc + } dataProcessing { 10 = TYPO3\CMS\Frontend\DataProcessing\DatabaseQueryProcessor 10 { @@ -36,9 +40,13 @@ tt_content.menu_abstract { if.value = 100 special > special = categories - special.value { - data = GP:topic_id - intval = 1 + special { + value { + data = GP:topic_id + intval = 1 + } + sorting = lastUpdated + order = desc } }