derhansen / sf_event_mgt_contentelements

Adds a relation field for content elements to events in TYPO3 extension sf_event_mgt
GNU General Public License v2.0
0 stars 0 forks source link

[TASK] Allow / disallow CTypes #4

Open Tobias-Gl opened 1 year ago

Tobias-Gl commented 1 year ago

It would be good to allow /disallow different CTypes for the module.

derhansen commented 7 months ago

This can be archieved with some PageTS for the folder with the events.

TCEFORM.tt_content {
    CType {
        #disable content elements
        removeItems := addToList(header)
        removeItems := addToList(text)
        removeItems := addToList(textpic)
        removeItems := addToList(image)
       ... etc.
    }
}

or

TCEFORM.tt_content.CType.keepItems = textmedia,image,uploads

I certainly did not find something in TYPO3 core, which allows to restrict this on TCA type=inline level.