Add shortcut element to not repeat recurring content

E.g. menus of a blog post series can now be referenced.
This commit is contained in:
Daniel Siepmann 2020-08-19 23:19:45 +02:00
parent d5b068d9ff
commit c56e57e765
2 changed files with 11 additions and 2 deletions

View file

@ -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)
}
}

View file

@ -0,0 +1,9 @@
tt_content.shortcut = RECORDS
tt_content.shortcut {
source.field = records
tables = tt_content
stdWrap {
editIcons := appendString(records)
}
}