Bug #32480
closedForm.css cannot be disabled
100%
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.
Updated by Lorenz Ulrich almost 13 years ago
After thinking about it, I think it would be better to read out TypoScript configuration in the setCss method because we want to make sure that the CSS is only on pages that contain a form element.
Updated by Steffen Gebert almost 13 years ago
I start puking, when I see that code.. it totally circumvents most API. Yes, including it in the TS template should be cleaner!
Updated by Oliver Hader almost 13 years ago
- Status changed from New to Accepted
- Complexity changed from easy to medium
Agreed, Lorenz did you consider to fix this? ;-)
Updated by Lorenz Ulrich almost 13 years ago
Yes I did :-). And I think I'll fix it.
Updated by Andreas Sauer over 12 years ago
Is there any way to circumvent the inclusion of the stylesheet this until it is resolved?
I don't want to poop on anybodies party, but i completely disagree with the contents of Form.css and want it gone.
Updated by Lorenz Ulrich over 12 years ago
Since I missed feature freeze (and a TypoScript config is a feature) this can only go into 4.8 (6.0?). I need to setup a new installation for master before I can do it.
Updated by Gerrit Code Review over 12 years ago
- Status changed from Accepted to Under Review
Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/11932
Updated by Lorenz Ulrich over 12 years ago
As you can see, this change is pending in Gerrit. Now it's your work to test it and plusone it if it works. Thanks!
Updated by Gerrit Code Review over 12 years ago
Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/11932
Updated by Gerrit Code Review over 12 years ago
Patch set 4 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/11932
Updated by Gerrit Code Review over 12 years ago
Patch set 5 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/11932
Updated by Lorenz Ulrich over 12 years ago
Anyone annoyed by this: I think the latest changeset would be fine for merging, but I will not be able to push that since I'll be on a holiday now. Please merge it before feature freeze :-). Thanks.
Updated by Gerrit Code Review over 12 years ago
Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/13402
Updated by Gerrit Code Review over 12 years ago
Patch set 6 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/11932
Updated by Lorenz Ulrich about 12 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 0eee6027db521105319913d6deb81743ba642427.