Using Plone 4.0rc1 when my theme product installs it registers 'reset.css'; 
however, the order specified in cssregistry.xml is not being respected, and I 
have to manually reorder the registry. Furthermore, it seems like skins are 
imported after setuphandlers are run, so I can't work around it by using a 
setuphandler to reorder portal_css resources.

It's important that reset.css be the first entry in portal_css -- how can I 
make sure that happens with GS?

Here is my cssregistry.xml:

<?xml version="1.0"?>
<object name="portal_css">
        <!--
                FIXME: Plone only respects the order specified here when it's 
registering new stylesheets.
                It doesn't reorder existing ones. New ones get added, in the 
specified order, at the bottom
                of the list of existing css.
        -->
        <stylesheet title="" applyPrefix="True" authenticated="False" 
cacheable="True"  compression="full" conditionalcomment="" cookable="True" 
enabled="True"  rel="stylesheet" rendering="link" media="screen" id="reset.css" 
expression=""/>
        <stylesheet title="" applyPrefix="True" authenticated="True"  
cacheable="True"  compression="full" conditionalcomment="" cookable="True" 
enabled="True"  rel="stylesheet" rendering="link" media="screen" 
id="member.css" expression=""/>
        <stylesheet title="" applyPrefix="True" authenticated="False" 
cacheable="True"  compression="full" conditionalcomment="" cookable="True" 
enabled="True"  rel="stylesheet" rendering="link" media="screen" id="base.css" 
expression=""/>
        <stylesheet title="" applyPrefix="True" authenticated="False" 
cacheable="True"  compression="full" conditionalcomment="" cookable="True" 
enabled="True"  rel="stylesheet" rendering="link" media="screen" 
id="public.css" expression=""/>
        <stylesheet title="" applyPrefix="True" authenticated="False" 
cacheable="True"  compression="full" conditionalcomment="" cookable="True" 
enabled="True"  rel="stylesheet" rendering="link" media="screen" 
id="columns.css" expression=""/>
        <stylesheet title="" applyPrefix="True" authenticated="False" 
cacheable="True"  compression="full" conditionalcomment="" cookable="True" 
enabled="True"  rel="stylesheet" rendering="link" media="screen" 
id="authoring.css" expression=""/>
        <stylesheet title="" applyPrefix="True" authenticated="False" 
cacheable="True"  compression="full" conditionalcomment="" cookable="True" 
enabled="True"  rel="stylesheet" rendering="link" media="screen" 
id="portlets.css" expression=""/>
        <stylesheet title="" applyPrefix="True" authenticated="False" 
cacheable="True"  compression="full" conditionalcomment="" cookable="True" 
enabled="True"  rel="stylesheet" rendering="link" media="screen" 
id="controlpanel.css" expression=""/>
        <stylesheet title="" applyPrefix="True" authenticated="False" 
cacheable="True"  compression="full" conditionalcomment="" cookable="True" 
enabled="True"  rel="stylesheet" rendering="link" media="screen" 
id="deprecated.css" expression=""/>
        <stylesheet title="" applyPrefix="True" authenticated="False" 
cacheable="True"  compression="full" conditionalcomment="" cookable="True" 
enabled="True"  rel="stylesheet" rendering="link" media="screen" 
id="navtree.css" expression=""/>
        <stylesheet title="" applyPrefix="True" authenticated="False" 
cacheable="True"  compression="full" conditionalcomment="" cookable="True" 
enabled="True"  rel="stylesheet" rendering="link" media="screen" 
id="invisibles.css" expression=""/>
        <stylesheet title="" applyPrefix="True" authenticated="False" 
cacheable="True"  compression="full" conditionalcomment="" cookable="True" 
enabled="True"  rel="stylesheet" rendering="link" media="screen" id="forms.css" 
expression=""/>
        <stylesheet title="" applyPrefix="True" authenticated="False" 
cacheable="True"  compression="full" conditionalcomment="" cookable="True" 
enabled="True"  rel="stylesheet" rendering="link" media="screen" 
id="ploneKss.css" expression=""/>
        <stylesheet title="" applyPrefix="True" authenticated="False" 
cacheable="True"  compression="full" conditionalcomment="" cookable="True" 
enabled="True"  rel="stylesheet" rendering="link" media="screen" 
id="++resource++tinymce.stylesheets/tinymce.css" expression=""/>
        <stylesheet title="" applyPrefix="True" authenticated="False" 
cacheable="True"  compression="full" conditionalcomment="" cookable="True" 
enabled="True"  rel="stylesheet" rendering="link" media="print" id="print.css" 
expression=""/>
        <stylesheet title="" applyPrefix="True" authenticated="False" 
cacheable="True"  compression="full" conditionalcomment="" cookable="True" 
enabled="True"  rel="stylesheet" rendering="link" media="handheld, screen and 
(max-device-width: 480px)" id="mobile.css" expression=""/>
        <stylesheet title="" applyPrefix="True" authenticated="False" 
cacheable="True"  compression="full" conditionalcomment="" cookable="True" 
enabled="True"  rel="stylesheet" rendering="link" media="screen" id="RTL.css" 
expression="python:portal.restrictedTraverse('@@plone_portal_state').is_rtl()"/>
        <stylesheet title="" applyPrefix="True" authenticated="False" 
cacheable="False" compression="full" conditionalcomment="" cookable="True" 
enabled="False" rel="stylesheet" rendering="link" media="screen" 
id="++resource++plone.app.jquerytools.overlays.css" expression=""/>
        <stylesheet title="" applyPrefix="True" authenticated="False" 
cacheable="True"  compression="full" conditionalcomment="" cookable="True" 
enabled="True"  rel="stylesheet" rendering="link" media="all" 
id="ploneCustom.css" expression=""/>
</object>

Best wishes,
Michael A. Smith
Web & Digital / Academic Technologies Manager
Nazareth College
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to