Plugin Charter editorIntegration manual v1.4.0, v1.5.0


Installation

  • Stop the server
  • Download jars from plugin and add them (ametys-plugin-skineditor-1.5.0.jar and ametys- plugin-skineditor-resources-1 .5.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.skineditor.tool.SkinEditorTool.
    It is advisable to add it in the Developer tab.

  • In the same file, to be able to open the editor, also add the button org.ametys.skineditor.tool.SkinEditorTool in the "Developer" tab

  • In this same file, import the ribbon file specific to the charter editor plugin:skineditor://cms-ribbon.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.skineditor.tool.SkinEditorTool"/>
				</large>
				<medium>
					[...]
					<control id="org.ametys.skineditor.tool.SkinEditorTool"/>
				</medium>
				<small/>
    		</group>
			[...]
		</groups>
	<tab>
	[...]
	
	 <import>plugin:skineditor://cms-ribbon.xml</import>
</tabs>

Please note! If the group contains a description , and , the button must be added to the 3.

 

  • Version 1.4.0 of plugin depends on the CodeMirror library version 2.2. Download and add jar codemirror-resources-2.2.jar to your application's WEB-INF/lib directory.

  • Version 1.4.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.

  • Restart the server

 

Back to top

Skin editor