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

ContentTypeEnumerator and AvailableContentTypesEnumerator should be configurable

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

      • all-option : blank, concat, disabled. Default to blank.
      • include-private : true or false
      • This will sax only the available public content types. The "all" option is active and its value is blank ""
        <custom-enumerator class="org.ametys.web.contenttype.AvailableContentTypesEnumerator">
        </custom-enumerator>
        
      • This will sax only the available public content types. The "all" option is not available in list
        <custom-enumerator class="org.ametys.web.contenttype.AvailableContentTypesEnumerator">
             <all-option>disabled</all-option>
        </custom-enumerator>
        
      • This will sax the available public and private content types. The "all" option is active and its value is the concatenation of listed content types separated by coma
        <custom-enumerator class="org.ametys.web.contenttype.AvailableContentTypesEnumerator">
            <all-option>concat</all-option>
            <include-private>true</include-private>
        </custom-enumerator>
        

      NB: the "available" content types are those not excluded in content-types-*.xml

            Unassigned Unassigned
            laurence Laurence Aumeunier
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: