Posted Feb 10, 2009
Forcing viewlets to order properly.
From the Department of Putting-this-out-there-so-someone-doesn't-have-to-spend-an-hour-fighting-with-the-same-problem.
Recently, I ran into issues defining the placement of a new viewlet I'd created. The GenericSetup viewlet tag has "insert-before" and "insert-after" attributes that didn't seem to be working as I'd thought they would.
When I attempted
<order manager="plone.htmlhead" skinname="*"> <viewlet name="glowormHtmlHeadIncludes" insert-after="plone.resourceregistries" /> </order>my viewlet wasn't showing up where expected.
So instead, to get it to work properly, I wound up having to relist the existing viewlet I wanted it to be placed after.
<order manager="plone.htmlhead" skinname="*">
<viewlet name="plone.resourceregistries" />
<viewlet name="glowormHtmlHeadIncludes" />
</order>
That's it. Hope that helps.

Re: Forcing viewlets to order properly.