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

[Disable conditions] Add a way to get conditions that do not depend on another content's data

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 4.9.0
    • None
    • None
    • None
    • 4.9.0 M9
    • Oui

      We want to be able to have external conditions, that will use specific java class. This class can check whatever it wants to evaluate the condition

      Exemple of such a disable condition:
       

      <attribute name="illustration" type="composite">
          <label>Illustration</label>
          <description>Illustration</description>
          <disable-conditions>
              <condition class="org.ametys.cms.content.TestDisableCondition" disabled="true"/>
          </disable-conditions>
          [...]
      </attribute>
      

       

          [CMS-12346] [Disable conditions] Add a way to get conditions that do not depend on another content's data

          Caroline Bayle made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          Caroline Bayle made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]
          Magali Franchet made changes -
          Attachment New: image-2025-06-05-14-52-03-982.png [ 32151 ]
          Attachment New: image-2025-06-05-14-51-51-731.png [ 32152 ]
          Caroline Bayle made changes -
          Status Original: Reopened [ 4 ] New: In Progress [ 3 ]
          Magali Franchet made changes -
          Resolution Original: Fixed [ 1 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]
          Caroline Bayle made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Ready to merge [ 10208 ] New: Resolved [ 5 ]
          Cédric Damioli made changes -
          Assignee Original: Cédric Damioli [ cedric ] New: Caroline Bayle [ cbayle ]
          Cédric Damioli made changes -
          Status Original: Functional review OK [ 10207 ] New: Ready to merge [ 10208 ]
          Caroline Bayle made changes -
          Assignee Original: Caroline Bayle [ cbayle ] New: Cédric Damioli [ cedric ]
          Caroline Bayle made changes -
          Status Original: Available for review [ 10005 ] New: Functional review OK [ 10207 ]

            cbayle Caroline Bayle
            cbayle Caroline Bayle
            Caroline Bayle Caroline Bayle
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: