From c56e57e7654d08d24309148c173994bef527ce0b Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Wed, 19 Aug 2020 23:19:45 +0200 Subject: [PATCH] Add shortcut element to not repeat recurring content E.g. menus of a blog post series can now be referenced. --- .../Mod/Wizards/0_NewContentElement.tsconfig | 4 ++-- .../TypoScript/Setup/ContentElements/Shortcut.typoscript | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 Configuration/TypoScript/Setup/ContentElements/Shortcut.typoscript diff --git a/Configuration/PageTSconfig/Mod/Wizards/0_NewContentElement.tsconfig b/Configuration/PageTSconfig/Mod/Wizards/0_NewContentElement.tsconfig index 0ecc9d9..9d4a1a7 100644 --- a/Configuration/PageTSconfig/Mod/Wizards/0_NewContentElement.tsconfig +++ b/Configuration/PageTSconfig/Mod/Wizards/0_NewContentElement.tsconfig @@ -15,7 +15,7 @@ mod.wizards.newContentElement.wizardItems { show = menu_abstract, menu_pages, menu_subpages } special { - show = + show = shortcut } forms { show = @@ -26,6 +26,6 @@ mod.wizards.newContentElement.wizardItems { } TCEFORM.tt_content { CType { - keepItems := addToList(text, image, video, menu_abstract, menu_pages, menu_subpages) + keepItems := addToList(text, image, video, menu_abstract, menu_pages, menu_subpages, shortcut) } } diff --git a/Configuration/TypoScript/Setup/ContentElements/Shortcut.typoscript b/Configuration/TypoScript/Setup/ContentElements/Shortcut.typoscript new file mode 100644 index 0000000..8002bd1 --- /dev/null +++ b/Configuration/TypoScript/Setup/ContentElements/Shortcut.typoscript @@ -0,0 +1,9 @@ +tt_content.shortcut = RECORDS +tt_content.shortcut { + source.field = records + tables = tt_content + + stdWrap { + editIcons := appendString(records) + } +}