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>
      

       

        1. TestDisableCondition.java
          2 kB
          Caroline Bayle
        2. image-2025-05-15-17-01-01-972.png
          4 kB
          Magali Franchet
        3. image-2025-06-05-14-51-51-731.png
          17 kB
          Magali Franchet
        4. image-2025-06-05-14-52-03-982.png
          135 kB
          Magali Franchet

            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: