[Plone-UI] Stylesheet problems

espen espen at medialog.no
Tue Jan 31 22:02:08 UTC 2012


>
>
>Hi, I have developed a custom theme for my Plone-4.1.3 site.  The theme
>includes some css-files.  To have them appear in the HTML header of a Plone
>page I have done the following:
>
>#1 In browser/configure.zcml there is a declaration
>
>  <browser:resourceDirectory
>      name="mytheme.mytheme.stylesheets"
>      directory="stylesheets"
>      layer=".interfaces.IThemeSpecific"
>      />
>
>to specify which directory to use for my stylesheets
>
>#2 In profiles/default/cssregistry.xml there is an entry
>
> <stylesheet title=""
>    id="++resource++isytheme.isytheme.stylesheets/mystylesheet.css"
>    media="screen" rel="stylesheet" rendering="import"
>    cacheable="True" compression="safe" cookable="True"
>    enabled="1" expression=""/>
>
>for each of my custom stylesheet files.
>
>#3 My custom stylesheets are copied into the above declared "stylesheets"
>directory
>
>My problem is that I cannot make the stylesheets appear in the page view
>unless I tick the "development mode" in ZMI's css registry.  If I untick the
>developement mode they disappear again.  I checked the HTMl source produced
>by Plone and my css-files are only declared in the head when "development
>mode" is ticked, otherwise not.
>
>My css-files appear in the ZMI css registry view, so Plone is aware of them. 
>Why are they declared in the HTML head only in "development mode"?

When in development mode, the css in subfolders are loaded, maybe this is why.
This has been discussed before, so try googling for it (I cant remember it now (home, a bit busy)

Espen
>
>Regards
>
>Klas Nordberg
>
>
>_______________________________________________
>If you reply to this email, your message will be added to the discussion below:
>http://plone.293351.n2.nabble.com/Stylesheet-problems-tp7240532p7240532.html
>
>To unsubscribe from Plone, visit http://plone.293351.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=293351&code=ZXNwZW5AbWVkaWFsb2cubm98MjkzMzUxfC01OTUzNTQ2MjI=

-- 
Espen Moe-Nilssen
Grieg Medialog AS



--
View this message in context: http://plone.293351.n2.nabble.com/Stylesheet-problems-tp7240532p7241345.html
Sent from the User Interface & Design mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.plone.org/pipermail/plone-ui/attachments/20120131/24d80d04/attachment.html>


More information about the UI mailing list