Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-7246

The configuration to restrict the contents by zones and by templates is not taken into account.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.0M5
    • 4.0.0
    • None
    • None

      How to reproduce :

      • I create a template page with this zones :
        <template>
            <label i18n="true">SKIN_BO_ZONING_PAGE_LABEL</label> 
            <description i18n="true">SKIN_BO_ZONING_PAGE_DESCRIPTION</description> 
        
            <thumbnail> 
                <medium>thumbnail_32.png</medium> 
                <large>thumbnail_48.png</large>
            </thumbnail> 
            
            <zones>
            	<!-- HAUT DE PAGE -->
                <zone id="top-left" type="secondary" inherit=""> 
                    <label i18n="true">SKIN_BO_ZONING_PAGE_TOPLEFT_LABEL</label> 
                    <description i18n="true">SKIN_BO_ZONING_PAGE_TOPLEFT_DESCRIPTION</description>         
                </zone>
                
                <!-- COLONNE PRINCIPALE -->
                <zone id="default" type="primary"> 
                    <label i18n="true">SKIN_BO_ZONING_PAGE_MAIN_LABEL</label> 
                    <description i18n="true">SKIN_BO_ZONING_PAGE_MAIN_DESCRIPTION</description>         
                </zone>
                
                <!-- VOS UNIVERS -->
                <zone id="middle" type="secondary" inherit=""> 
                    <label i18n="true">SKIN_BO_ZONING_PAGE_MIDDLE_LABEL</label> 
                    <description i18n="true">SKIN_BO_ZONING_PAGE_MIDDLE_DESCRIPTION</description>         
                </zone>
                
                <!-- BAS DE PAGE -->
                <zone id="bottom-left" type="secondary" inherit=""> 
                    <label i18n="true">SKIN_BO_ZONING_PAGE_BOTTOMLEFT_LABEL</label> 
                    <description i18n="true">SKIN_BO_ZONING_PAGE_BOTTOMLEFT_DESCRIPTION</description>       
                </zone>
            </zones>
        </template>
      • I configure it like this :
        <?xml version="1.0" encoding="UTF-8"?>
        <content-types>
            <zones>
            	<!-- COLONNE PRINCIPALE -->
            	<zone id="default" mode="exclude"></zone>
            	
            	<!-- HAUT DE PAGE -->
                <zone id="top-left" mode="include">
                	<content-type id="org.ametys.web.default.Content.article"/>
                </zone>
                
                <!-- VOS UNIVERS -->
                <zone id="middle" mode="include">
                	<content-type id="org.ametys.plugins.myfavorites.Content.myfavorites"/>
                </zone>
                
                <!-- BAS DE PAGE -->
                <zone id="bottom-left" mode="exclude"></zone>
            </zones>
        </content-types>

        > in the CMS all contents are allowed in the top-left zone whereas article content should be the unique content type that could be used

            laurence Laurence Aumeunier
            llopez Laure Lopez
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: