[Neos] Specific CSS and JS in Backend-View
Carsten Bleicker
carsten at bleicker.de
Sat Nov 1 10:29:35 CET 2014
i did it by copy the neos backend header template to my project and overwriting the ts part:
page = Page {
...
...
head {
neosBackendHeader = TYPO3.TypoScript:Template {
templatePath = 'resource://Foo.Bar/Private/Templates/TypoScriptObjects/NeosBackendHeaderData.html'
}
}
...
}
insinde of the template i used:
<f:security.ifAccess resource="TYPO3_Neos_Backend_GeneralAccess">
----------------------
Carsten Bleicker
Wülfingstraße 1
42477 Radevormwald
E-Mail: carsten at bleicker.de
Web: www.bleicker.de
Twitter: @carstenbleicker
Jabber: cbleicker at jabber.ccc.de
Telefon: +49 (0)171-2690845
Am 01.11.2014 um 10:04 schrieb Aske Ertmann <aske at moc.net>:
> This should work in your package just fine.
>
> Are you sure the template you used has the node variable available?
>
>> On 29 Oct 2014, at 10:07, Maxi milian <info at maxguz.de> wrote:
>>
>> I want to insert specific CSS- and JS-Files in Backend-View. I found an example in "TYPO3.NeosDemoTypo3Org" Package.
>>
>> <f:if condition="{node.context.workspace.name} != 'live'">
>> <link rel="stylesheet" href="{f:uri.resource(path: 'Styles/Backend.css', package: 'TYPO3.NeosDemoTypo3Org')}" media="all" />
>> </f:if>
>>
>> But in my package this Code-Snippet is still not working. How could i fix this?
>> _______________________________________________
>> Neos mailing list
>> Neos at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/neos
>
> _______________________________________________
> Neos mailing list
> Neos at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/neos
More information about the Neos
mailing list