Customizing Skin

Hello,

I am trying to add some CSS to my installations. For this purpose I made a new Skin Document and added a my.css to the document.

I copied the contents of stylesheets.vm to the override section and added to the bottom the new my.css (for now just containing a body {background-color:red;}

This works fine, but a lot of CSSresources that are normally loaded, are no longer loaded. I have not touched the other code in stylesheets.vm

What am I missing?

Do I need to fill some variables in order to have the normal stylesheets loaded as well?

Basically what I need is to load one additional CSS in the end to make overrides to the default CSS.

With kind regards
Jurjen

Hi. See https://www.xwiki.org/xwiki/bin/view/Documentation/DevGuide/Tutorials/SkinExtensionsTutorial/ too if you all you need is add CSS.

@vmassol Thank you.

No, I have several Files in the Skin I also override. So I am building a new Skin in a broader way.

Probably we will add custom JS too. So I really want to dive into this proces.

I have tried to add a skin extension (on demand) and add that to the stylesheets.vm. I gives the same results as with an attachment to a skin page.

We have a multi-tennant implementation, with several custom extensions. The Skin update would be included in the core-extension that is the basis for all our implementations.

Thanks