Personal tools
You are here: Home Documentation FAQs Why is my new viewlet showing up in other skins on other plone instances?
Support

Get Help

Join our chat rooms or support forums if you have more specific questions.

Plone Training
Learn how to design, build, and deploy a website in Plone through one of the numerous Plone training sessions around the world.
Find Plone training…
 
Document Actions

Why is my new viewlet showing up in other skins on other plone instances?

Up to Table of Contents

This FAQ applies to: Plone 3.0.x

When creating a custom skin/theme a viewlet (registered in browser/configure.xml) is showing up in instances, that don't use the custom skin.

You probably don't have the layer=".interfaces.IThemeSpecific" line. Ensure that your entry in browser/configure.xml looks like this:

<browser:viewlet
        name="myskin.myspecialviewlet"
        manager="plone.app.layout.viewlets.interfaces.IPortalHeader"
        class=".viewlets.MySpecialViewlet"
        permission="zope2.View"
        layer=".interfaces.IThemeSpecific"
        />

You may need to restart Plone after the change is made.

see also:

Customizing the viewlets in main_template
Since Plone 3.0, main_template.pt calls viewlet managers instead of METAL macros. Learn from this tutorial how viewlets can be programmatically reordered, hidden or added (from a product on the filesystem).
by David Bain last modified October 19, 2007 - 20:33 All content is copyright Plone Foundation and the individual contributors.

For any issues with the web site functionality, please file a ticket.

Please consult the policy on plone.org content if you want your content published on this site.

Servers and hosting by