b13 / bolt

Easier integrations for TYPO3 sites
GNU General Public License v2.0
27 stars 13 forks source link

Override sys_template on a page level #37

Closed georgringer closed 11 months ago

georgringer commented 11 months ago

I would really like to discuss https://github.com/b13/bolt/issues/15 again.

I fully understand that TS should not in the DB, that is why we use such TsConfig

TCEFORM {
    sys_template {
        sitetitle.disabled = 1
        constants.disabled = 1
        config.disabled = 1
        includeStaticAfterBasedOn.disabled = 1
        basedOn.disabled = 1
        static_file_mode.disabled = 1
        starttime.disabled = 1
        endtime.disabled = 1
        clear.disabled = 1
        root.disabled = 1
        description.disabled = 1
    }
}

which allows us to have sys_template records with just the include_static select field. This is nice as we don't need to fiddle around with conditions and page IDs which can be different on various environments and still have the option to have everything versioned.

It worked fine in v10 but not in v12 :(

georgringer commented 11 months ago

some further comments: it shouldn't be up to this extension to educate integrators and hide the TS. there are extensions like https://github.com/josefglatz/hide_sys_template which can be used to deactivate the option to create sys_template records