Item11097: It would be nice if addToZone took wildcards for zone ordering
Priority: Enhancement
Current State: No Action Required
Released In: n/a
Target Release: minor
Applies To: Engine
Component:
Branches:
If I create a skin css, I cannot know beforehand which plugin styles will be loaded when the skin is used. For instance a lot of jquery plugins come with their own styles. Overriding these can only be done if the skin css is loaded after the jquery styles.
So to load the skin after all jquery plugin styles I would like to write:
%ADDTOZONE{
"head"
id="myskin"
text="..."
requires="JQUERYPLUGIN:*"
}%
and to load the skin css after all other styles:
%ADDTOZONE{
"head"
id="myskin"
text="..."
requires="*"
}%
--
ArthurClemens - 01 Sep 2011
I have solved this differently:
- Create a skin-specific zone by passing a skin unique name to
ADDTOZONE
(for instance head-myskin
)
- Render
head-myskin
after head
: %RENDERZONE{"head"}%%RENDERZONE{"head-myskin"}%
--
ArthurClemens - 01 Sep 2011
You could also override plugin styles by skin styles using a css rule of higher precedence when styles are cascaded, e.g.
.patternViewPage .jqButton:hover { color:orange }
--
MichaelDaum - 02 Sep 2011
That is possible, but I prefer not to do this for BaseSkin.
Putting base css styles at the very end means that overriding skin css must be rendered even after base, so at the very end.
--
ArthurClemens - 02 Sep 2011