Issue Bug Closed

#32480Form.css cannot be disabled

Lorenz Ulrich 12/12/11, 19:08 updated 10/02/18, 12:19

Description

Currently the frontend CSS file of the new form element is hardcoded and thus cannot be disabled.

Form.php:

    protected function setCss() {
        $GLOBALS['TSFE']->additionalHeaderData['tx_form_css'] =
            '<link rel="stylesheet" type="text/css" href="' .
            t3lib_extMgm::siteRelPath('form') .
            'Resources/Public/CSS/Form.css' .
            '" media="all" />';
    }

I would suggest to remove this method and the CSS include to the TypoScript setup in sysext/form/Configuration/TypoScript/setup.txt.

page.includeCSS.tx_form = typo3/sysext/form/Resources/Public/CSS/Form.css

Same for Confirmation.php.

If you agree with me, I would submit a request to Gerrit.

Reviews 2