Uploaded image for project: 'Nuxeo Studio'
  1. Nuxeo Studio
  2. NXS-4490

Make aggregate widgets agnostic of the widget mode

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 73.5
    • Fix Version/s: 73.8
    • Component/s: Layouts & Widgets

      Description

      Currently an aggregate widget is defined with a contribution similar to

            <widget name="customdocument_stringA_agg" type="selectManyCheckboxAggregate">
              <labels>
                <label mode="any">Terms</label>
              </labels>
              <translated>false</translated>
              <fields>
                <field>mySearchCV_cv:customdocument_stringA_agg</field>
              </fields>
              <widgetModes>
                <mode value="edit">{elExpression}</mode>
              </widgetModes>
              <properties widgetMode="edit">
                <property name="selectOptions">#{contentView.pageProvider.aggregates['customdocument_stringA_agg'].extendedBuckets}</property>
              </properties>
              <controls mode="any">
                <control name="supportInsideInputWidgetEffects">true</control>
              </controls>
            </widget>
      
      • the selectOptions property in defined only in edit mode
      • only the edit mode can be configured via the "Advanced mode configuration" field

      In both case, it would be nice to use the any mode instead of the edit mode to be able to apply this configuration to all modes

              <widgetModes>
                <mode value="any">edit</mode>
              </widgetModes>
              <properties widgetMode="any">
                <property name="selectOptions">#{contentView.pageProvider.aggregates['customdocument_stringA_agg'].extendedBuckets}</property>
      

      The label property already uses the any mode.

      Maybe it could be extended to all widget types.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour
                  1h