Integration manual


Installation

  • Stop the server
  • Download jars from plugin and add them (ametys-plugin-datainclusion-1.4.0.jar and ametys- plugin-datainclusion-resources-1.4.0.jar) in the WEB-INF/lib directory of your application. Ametys

  • Add button to open Data Source tool in file WEB-INF/params/cms-ribbon-default.xml. The button identifier is org.ametys.datainclusion.tool.DataSources.
    We recommend adding it to the Home tab, in the "Advanced tools" group.

  • In the same file, to be able to insert a query in the content editor, also add the button org.ametys.datainclusion.editor.Query in the org.ametys.cms.content.EditionTab

  • In the same file, import the ribbon file specific to the Data Source tool plugin:datainclusion://cms-ribbon.xml
<tabs>
	<tab label="RIBBON_TABS_TAB_HOME_LABEL">
    	<groups>
			[...]
			<group label="RIBBON_TABS_TAB_HOME_GROUPS_GROUP_ADVANCED_TOOL_LABEL" icon="">
				<large>
					[...]
					<control id="org.ametys.datainclusion.tool.DataSources"/>
				</large>
				<medium>
					[...]
					<control id="org.ametys.datainclusion.tool.DataSources"/>
				</medium>
				<small/>
    		</group>
			[...]
		</groups>
	<tab>
	[...]
	<tab label="plugin.cms:RIBBON_TABS_TAB_CONTENT_EDIT_LABEL" id="org.ametys.cms.content.EditionTab">
		<groups>
			[...]
			<group label="plugin.cms:RIBBON_TABS_TAB_CONTENT_EDIT_GROUPS_GROUP_INSERT_LABEL" icon="">
				<large>...</large>				
				<medium>
					<layout align="top" size="small">
						[...]							[...]
						<control id="org.ametys.datainclusion.editor.Query"/>
					</layout>
				</medium>
				<small>...</small>
			</group>
		</groups
	</tab>
	
	<!-- Data inclusion contextual tab -->
    <import>plugin:datainclusion://cms-ribbon.xml</import>
</tabs>

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

 

  • Restart the server

 

Back to top

External Data