Project

General

Profile

Actions

Bug #32480

closed

Form.css cannot be disabled

Added by Lorenz Ulrich almost 13 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Form Framework
Target version:
-
Start date:
2011-12-12
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.6
PHP Version:
Tags:
Complexity:
medium
Is Regression:
Sprint Focus:

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.


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #40670: Cant modify the output with typoscriptClosed2012-09-06

Actions
Has duplicate TYPO3 Core - Bug #28607: CSS path with TSClosed2011-07-31

Actions
Actions #1

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.

Actions #2

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!

Actions #3

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? ;-)

Actions #4

Updated by Lorenz Ulrich almost 13 years ago

Yes I did :-). And I think I'll fix it.

Actions #5

Updated by Blogger over 12 years ago

This correction is resolved?

Actions #6

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.

Actions #7

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.

Actions #8

Updated by Paul Fleischanderl over 12 years ago

made progress?

Actions #9

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

Actions #10

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!

Actions #11

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

Actions #12

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

Actions #13

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

Actions #14

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.

Actions #15

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

Actions #16

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

Actions #17

Updated by Lorenz Ulrich about 12 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #18

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF