fix: properly limit/allow content elements per site

This commit is contained in:
Björn Fromme
2024-05-31 16:45:52 +02:00
parent 8fc13da4de
commit e083a9dcd9
4 changed files with 19 additions and 1 deletions
@@ -1,5 +1,5 @@
@import 'EXT:ep_events/Configuration/TSconfig/Page/Mod/SHARED.tsconfig' @import 'EXT:ep_events/Configuration/TSconfig/Page/Mod/SHARED.tsconfig'
@import 'EXT:ep_events/Configuration/TSconfig/Page/Mod/WebLayout/BackendLayouts.tsconfig' @import 'EXT:ep_events/Configuration/TSconfig/Page/Mod/WebLayout/BackendLayouts.tsconfig'
@import 'EXT:ep_events/Configuration/TSconfig/Page/Mod/Wizards/NewContentElement.tsconfig' @import 'EXT:ep_events/Configuration/TSconfig/Page/Wizards/NewContentElement.tsconfig'
@import 'EXT:ep_events/Configuration/TSconfig/Page/RTE.tsconfig' @import 'EXT:ep_events/Configuration/TSconfig/Page/RTE.tsconfig'
@import 'EXT:ep_events/Configuration/TSconfig/Page/TCEFORM.tsconfig' @import 'EXT:ep_events/Configuration/TSconfig/Page/TCEFORM.tsconfig'
@@ -1,5 +1,14 @@
TCEFORM { TCEFORM {
tt_content { tt_content {
CType {
# Remove content elements added by EXT:ep_theme
removeItems := addToList(teaser, teaser_country, teaser_region, teaser_city, teaser_hotel, teaser_concept)
removeItems := addToList(teaser_product, teaser_booking_link, disturber, disrupter, deal_of_the_week)
removeItems := addToList(lineup, event_pricetable, nlform)
removeItems := addToList(gmap, contact, calendar, ytvideo, button)
removeItems := addToList(ep_container_quarters, ep_container_teasergroup)
}
# Disable image orientations # Disable image orientations
imageorient.removeItems = 0,1,2,8,9,25,26 imageorient.removeItems = 0,1,2,8,9,25,26
imageorient.disabled = 1 imageorient.disabled = 1
@@ -1,5 +1,9 @@
mod { mod {
wizards.newContentElement.wizardItems { wizards.newContentElement.wizardItems {
common.show := removeFromList(table,bullets,uploads)
special.show = div,shortcut,html
menu.show =
forms.show =
epevents { epevents {
header = EP Events header = EP Events
elements { elements {
@@ -1,5 +1,10 @@
TCEFORM { TCEFORM {
tt_content { tt_content {
CType {
# Remove content elements added by EXT:ep_events
removeItems := addToList(tile, statement, herounit, banner)
}
imageorient.removeItems := addToList(0,1,2,8,9,25,26) imageorient.removeItems := addToList(0,1,2,8,9,25,26)
imageorient.disabled = 1 imageorient.disabled = 1
imagecols.disabled = 1 imagecols.disabled = 1