2.1.7.1.2. Portal Skin Preview Icon

When selecting a skin, it is possible to preview it. The current skin needs to know about the skin icons for all the available skins; otherwise, it will not be able to show the previews. When creating a new portal, it is recommended to include the preview icons of the other skins and to update the other skins with your new portal skin preview.

The portal skin preview icon is specified through the CSS of the portal skin. To display the preview for the current portal skin, you must specify a specific CSS class and set the icon as the background.

For the portal named MySkin, the CSS class must be defined as follows:


.UIChangeSkinForm .UIItemSelector .TemplateContainer .

In order for the default skin to know about the skin icon for a new portal skin, the preview screenshot needs to be placed in:

01eXoResources.war:/skin/DefaultSkin/portal/webui/component/customization/UIChangeSkinForm/background

The CSS stylesheet for the default portal needs to have the following updated with the preview icon CSS class. For a skin named MySkin, you need to update the following:

01eXoResources.war:/skin/DefaultSkin/portal/webui/component/customization/UIChangeSkinForm/Stylesheet.css

.UIChangeSkinForm .UIItemSelector .TemplateContainer .
 {
  
margin: auto;
  
width: 329px; height:204px;
  
background: url('background/MySkin.jpg') no-repeat top;
  
cursor: pointer ;
}
Copyright ©2012. All rights reserved. eXo Platform SAS