Feature #43156
Allow inclusion of CSS files in Backend modules
Status: | Resolved | Start date: | 2012-11-20 | |
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | Adrian Föder | % Done: | 0% |
|
Category: | UI | |||
Target version: | - |
Description
allow an additional configuration directive at
1TYPO3:
2 Neos:
3 modules:
4 administration:
5 submodules:
6 sample:
7 label: 'An example module'
8 controller: 'Acme\Foobar\Controller\Module\Administration\SampleController'
9 description: >
10 This is just a description for the controller.
11 Note the additional "resources.css|js" directives.
12 icon: 'resource://TYPO3.Neos/Public/Images/Icons/Black/notepad_icon-24.png'
13 additionalResources:
14 styleSheets:
15 - resource://Acme.Foobar/Public/Css/Module/Sample.css
16 javaScripts:
17 - resource://Acme.Foobar/Public/JavaScript/Module/Foo.js
18 - resource://Acme.Foobar/Public/JavaScript/Module/Bar.js
19
We need to be aware of the upcoming asset handling then and modify this appropriately.
Related issues
Associated revisions
[FEATURE] Allow additional CSS and JavaScript in Backend Modules
This allows to configure the inclusion of multiple additional
CSS or JavaScript files from any desired package, for the
use in Backend Modules. Such a configuration would be for example::
TYPO3:
Neos:
modules:
administration:
submodules:
sample:
label: 'An example module'
controller:
'Acme\Foobar\Controller\Module\Administration\SampleController'
description: >
This is just a description for the controller.
Note the additional "resources.css|js" directives.
icon:
'resource://TYPO3.Neos/Public/Images/Icons/Black/notepad_icon-24.png'
additionalResources:
styleSheets:
- resource://Acme.Foobar/Public/Css/Module/Sample.css
javaScripts:
- resource://Acme.Foobar/Public/JavaScript/Module/Foo.js
- resource://Acme.Foobar/Public/JavaScript/Module/Bar.js
Besides, it removes the obsolete ``type`` argument at the
``<link rel="stylesheet" ...`` tag.
Change-Id: Ibaf7d380f550f7134d6833e26466ccb45ec01800
Resolves: #43156
History
#1 Updated by Gerrit Code Review over 2 years ago
Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/16623
#2 Updated by Gerrit Code Review over 2 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/16623
#3 Updated by Aske Ertmann over 2 years ago
- Status changed from Accepted to Under Review
#4 Updated by Gerrit Code Review over 2 years ago
Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/16623