Integration manual v1.0.0, v1.1.0, v1.2.0, v1.3.0


  1. Installation
  2. Creating and configuring a charter template

Installation

  • Stop the server
  • Download jars from plugin and add them (ametys-plugin-skinfactory-1.0.0.jar and ametys- plugin-skinfactory-resources-1.0.0. jar ) to your application's WEB-INF/lib directory. Ametys

  • Add button to open tool in file WEB-INF/params/cms-ribbon-default.xml. The button identifier is org.ametys.skinfactory.tool.SkinFactoryTool.
    We recommend adding it to the "Developer" tab, or adding an "Integrator" tab.

  • In the same file, import the ribbon file specific to the graphic design workshop. plugin:skinfactory://ribbon/cms-ribbon.xml

Extract from cms-ribbon-default.xml

<tabs>
    <tab label="RIBBON_TABS_TAB_DEVELOPPER_LABEL">
        <groups>
            [...]
            <group label="RIBBON_TABS_TAB_DEVELOPPER_GROUPS_GROUP_INTEGRATOR_LABEL" icon="">
                <large>
                    [...]
                    <control id="org.ametys.skinfactory.tool.SkinFactoryTool"/>
                </large>
                <medium>
                    [...]
                    <control id="org.ametys.skinfactory.tool.SkinFactoryTool"/>
                </medium>
                <small/>
            </group>
            [...]
        </groups>
    <tab>
    [...]
     
     <import>plugin:skinfactory://ribbon/cms-ribbon.xml</import>
</tabs>

If the group contains a description <large><medium> and <small> button must be added to the 3.

 

  • Version 1.0.0 of plugin depends on plugin ametys "SkinCommons". Download and add jars ametys -plugin-skincommons-1.0.0.jar and ametys-plugin-skincommons-resources-1.0.0..jar to your application's WEB-INF/lib directory.
  • In the WEB-INF/params/workspace-admin.xml replace button org.ametys.web.administrator.Skins by org.ametys.skinfactory.administrator.Skins.

    Extract from workspace-admin.xml

    <administrator>
        <actions>
            [...]
            
            <category name="WORKSPACE_ADMIN_SECTION_APPLICATION_LABEL">
                <item id="org.ametys.runtime.plugins.core.administrator.Plugins"/>
                <item id="org.ametys.web.administrator.Sites"/>
                <item id="org.ametys.plugins.repository.administrator.JCRRepository"/>
                <item id="org.ametys.skinfactory.administrator.Skins"/>
            </category>
        </actions>
    </administrator>
    
  • Restart the server

Attention
If you have plugin "Charter Editor", you must upgrade to the latest version!

 

Creating and configuring a charter template

This extension is only useful if you have one or more graphic templates.

See Creating and setting up a charter template

 

Back to top

Skin factory