viewlets order manager affecting unrelated themes/skins

David Bain david.bain at alteroo.com
Tue Oct 16 17:13:20 UTC 2007


Why are changes to the viewlets.xml of one skin affecting other skins on
other plone instances?

I've created a skin that removes the plone.global_sections and adds a
custom  global_sections
works great in the instance with my custom skin! except in other instances,
that don't use the custom skin I now have two global_sections.
This is happening,  even with newly added instances.

I've an explanatory screenshot (on my third attempt, had to keep the entire
message below 40k).
Below is my code:

browser/configure.zcml
---snip ----
<browser:viewlet
        name="jalugskin.personal_bar"
        manager="plone.app.layout.viewlets.interfaces.IPortalHeader "
        class="plone.app.layout.viewlets.common.PersonalBarViewlet"
        permission="zope2.View"
      />
--- snip ---

profiles/default/viewlets.xml
--- snip ----
<order manager="plone.portalheader" skinname="JALUGSkin">
    <viewlet name="plone.site_actions"
        insert-before="*"
           />
    <viewlet name="jalugskin.global_sections"
        insert-before="plone.searchbox"
           />
    <viewlet name="jalugskin.personal_bar"
        insert-before=" plone.searchbox"
           />
    <viewlet name="plone.searchbox"
        insert-before="plone.logo"
           />

 </order>
 <hidden manager=" plone.portalheader" skinname="JALUGSkin">
    <viewlet name="plone.global_sections" />
  </hidden>
--- snip ---
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.plone.org/pipermail/plone-product-developers/attachments/20071016/d35c7183/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: help-with-viewlets.jpg
Type: image/jpeg
Size: 20497 bytes
Desc: not available
URL: <http://lists.plone.org/pipermail/plone-product-developers/attachments/20071016/d35c7183/attachment.jpg>


More information about the Product-Developers mailing list