[Neos] CSS only in Backend

Dmitri Pisarev dimaip at gmail.com
Tue Mar 31 10:19:53 CEST 2015


Hey Patric!
I do smth like this:
```
prototype(MYTEMPLATE).head.stylesheets.backend = TYPO3.TypoScript:Template {
templatePath = 'resource://Sfi.Sfi/Private/Templates/Pages/Utility.html'
sectionName = 'backendStylesheets'
@process.1=${node.context.workspaceName != 'live' ? value:''}
}
```
I guess Fluid condition could work too, but I think TS is better suited for
such logic.

On Tue, 31 Mar 2015 at 11:10 Patric Eckhart <mail at patriceckhart.com> wrote:

> Hey,
>
> how can I use a CSS only in "backend mode"
> I´ve tried this with:
> <f:if condition="{node.context.workspace.name} != 'live'">
>                                 my css
> </f:if>
>
> but it does not work.
> _______________________________________________
> Neos mailing list
> Neos at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/neos


More information about the Neos mailing list