Item11097: It would be nice if addToZone took wildcards for zone ordering

pencil
Priority: Enhancement
Current State: No Action Required
Released In: n/a
Target Release: minor
Applies To: Engine
Component:
Branches:
Reported By: ArthurClemens
Waiting For:
Last Change By: ArthurClemens
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:

  1. Create a skin-specific zone by passing a skin unique name to ADDTOZONE (for instance head-myskin)
  2. 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
 

ItemTemplate edit

Summary It would be nice if addToZone took wildcards for zone ordering
ReportedBy ArthurClemens
Codebase trunk
SVN Range
AppliesTo Engine
Component
Priority Enhancement
CurrentState No Action Required
WaitingFor
Checkins
TargetRelease minor
ReleasedIn n/a
Topic revision: r5 - 02 Sep 2011, ArthurClemens
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy