Integration manual


Installation

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

  • Add buttons and menus for inserting media into file(s)s WEB-INF/params/cms-ribbon-*.xml.
    The button identifier is org.ametys.inlinemedia.editor.Insert.flash and org.ametys.inlinemedia.editor.Insert.video.
    They must be added in the content editing tab (org.ametys.cms.content.EditionTab)

  • In the same file, import the ribbon file containing the media-specific contextual tab plugin:inlinemedia://cms-ribbon.xml

    <tab label="plugin.cms:RIBBON_TABS_TAB_CONTENT_EDIT_LABEL" id="org.ametys.cms.content.EditionTab" contextualColor="1" contextualGroup="Z" contextualLabel="plugin.cms:RIBBON_TABS_TAB_CONTENT_EDIT_LABEL">
    	<groups>
    		[...]
    		<group label="plugin.cms:RIBBON_TABS_TAB_CONTENT_EDIT_GROUPS_GROUP_INSERT_LABEL" icon="">
    			<large>
    				[...]
    			</large]
    			<medium>
            		<control id="org.ametys.cms.edition.table.Insert"/>
            		<layout align="top" size="small">
                    	<control id="org.ametys.plugins.explorer.edition.images.Insert"/>
                		<control id="org.ametys.inlinemedia.editor.Insert.flash"/>
               			<control id="org.ametys.inlinemedia.editor.Insert.video"/>
            		</layout>
            		[...]
            	</medium>
    			<small>
    				[...]
    			</small>
    		</groups>
    		[...]
    	</groups>
    </tab>
    
    [...]
    <import>plugin:inlinemedia://cms-ribbon.xml</import>
    

    Please note! If the group contains a description <large>, <medium> and <small> buttons in all 3 sections.

  • Restart the server
Back to top

Inlinemedia