In learning Xwiki, I am trying to use a Style Sheet Extension to apply CSS to only a group
of pages. I have been following the Skin Extension Tutorial
(
http://platform.xwiki.org/xwiki/bin/view/DevGuide/SkinExtensionsTutorial) and placing all
of my work in the Sandbox.
The issue I am having is that when setting "Use This Extension" to On Demand
Only the CSS is not applied but when setting "Use This Extension" to On This
Wiki it works correctly.
What I have done:
1. Created new page called StyleTest located under Sandbox.
2. Added XWiki.StyleSheetExtension object to page.
3. Named object StyleTestStyleSheet.
4. Added the following in Code:
label {
font-family: "Times New Roman", times, serif;
}
5. Set "Use This Extension" to On Demand Only, "Parse Content"
to No, "Caching Policy" to Default, "Content Type" to CSS.
Next I created a new page named Another Test Page and entered the following code:
{{velocity}}
$xwiki.ssx.use("Sandbox.StyleTest")
{{html wiki=true}}
(((
; <label>Name Label</label>
: Name
; <label>Blank Label</label>
: Blank
; <label>Lube Type Label</label>
: Lube Type
)))
{{/html}}
{{/velocity}}
We are currently using XWiki Enterprise 7.4.4.
What am I doing wrong?
Thanks,
Steve