Integration manual


Installation

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

  • Add a button to open the UGC tool in the WEB-INF/param/cms-ribbon-default.xml. The button identifier is org.ametys.plugins.ugc.Search.
    We recommend adding it to the Home tab, in the "Advanced tools" group.

  • In the same file, import the ribbon file specific to the UGC <import>plugin:ugc://cms-ribbon.xml</import>
<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.plugins.ugc.Search"/>
				</large>
				<medium>
					[...]
					<control id="org.ametys.plugins.ugc.Search"/>
				</medium>
				<small/>
    		</group>
			[...]
		</groups>
	<tab>
	[...]
	
	 <import>plugin:survey://cms-ribbon.xml</import>
</tabs>

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

 

 

  • Modify the file WEB-INF/param/workflows.xml to add the reference to the new workflow "workflow-ugc.xml":

    <workflows>
      <workflow name="content" type="file" location="workflow.xml"/>
      <workflow name="newsletter" type="file" location="workflow-newsletter.xml"/>
      <workflow name="ugc" type="file" location="workflow-ugc.xml"/>
    </workflows>
    
  • Restart the server

 

Back to top

UGC