Uploaded image for project: 'Skin factory'
  1. Skin factory
  2. SKINFACTORY-8

The cms-ribbon.xml file does not delete tab when it does not have any button inside anymore

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.0.0
    • 1.0.0
    • None

      How to reproduce :

      • create a new variable in order to have a new tab in the cms-ribbon like this :
        	background-color:#FFC821 /* AMETYS ("template.header.menu", MODEL_HEADER_MENU) */;
      • then replace the name of the tab in order to have this buttons in an other tab.
        	background-color:#FFC821 /* AMETYS ("newtab.header.menu", MODEL_HEADER_MENU) */;

        > the buttons appear in the good place but the old tab is still here and empty. In the cms-ribbon.xml :

        <tab contextualLabel="plugin.skinfactory:RIBBON_TABS_TAB_SKINFACTORY_GROUP_LABEL"
        		contextualColor="5" contextualGroup="S"
        		id="org.ametys.skinfactory.Tab.template" label="template">
        		<groups>
        			<group icon="" label="main">
        				<large><!--parameter id="template.main.color"/ -->
        				</large>
        				<medium>
        					<layout cols="1" size="small"><!--parameter id="template.main.color"/ -->
        					</layout>
        				</medium>
        				<small>
        					<layout cols="1" size="very-small"><!--parameter id="template.main.color"/ -->
        					</layout>
        				</small>
        			</group>
        			<group icon="" label="header">
        				<large><!--parameter id="template.header.menu2"/ --><!--parameter id="template.header.menu3"/ --><!--parameter id="template.header.menu1"/ --><!--parameter id="template.header.menu6"/ --><!--parameter id="template.header.menu4"/ --><!--parameter id="template.header.menu5"/ --><!--parameter id="template.header.menu"/ --><!--parameter id="template.header.div"/ -->
        				</large>
        				<medium>
        					<layout cols="3" size="small"><!--parameter id="template.header.menu2"/ --><!--parameter id="template.header.menu3"/ --><!--parameter id="template.header.menu1"/ --><!--parameter id="template.header.menu6"/ --><!--parameter id="template.header.menu4"/ --><!--parameter id="template.header.menu5"/ --><!--parameter id="template.header.menu"/ --><!--parameter id="template.header.div"/ -->
        					</layout>
        				</medium>
        				<small>
        					<layout cols="3" size="very-small"><!--parameter id="template.header.menu2"/ --><!--parameter id="template.header.menu3"/ --><!--parameter id="template.header.menu1"/ --><!--parameter id="template.header.menu6"/ --><!--parameter id="template.header.menu4"/ --><!--parameter id="template.header.menu5"/ --><!--parameter id="template.header.menu"/ --><!--parameter id="template.header.div"/ -->
        					</layout>
        				</small>
        			</group>
        		</groups>
        	</tab>

      If I delete cms-ribbon.xml file and restart the cms, the old tab does not appear anymore.

            Unassigned Unassigned
            llopez Laure Lopez
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: