Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-8885

Make it possible to contribute new widgets to existing layouts incrementally

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.5
    • Fix Version/s: 5.6-RC1, 5.6
    • Component/s: Layouts & Widgets

      Description

      Addons should be able to inject new widget into the existing layout defined in the application (e.g. DM, CMF, DAM...) without overriding the complete layout definition.

      Possible implementation would be have a merge mechanism for the layout extension point:

        <extension target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager"
          point="layouts">
      
          <layout name="default_summary_layout" merge="true">
            <rows>
              <row>
      
                <widget insertBefore="summary_current_document_files">
                  summary_current_document_myaddon_widget_1</widget>
      
                <widget insertAfter="summary_current_document_description">
                  summary_current_document_myaddon_widget_2</widget>
      
                <widget replace="summary_current_document_tagging">
                  summary_current_document_myaddon_tagging_replacement_widget</widget>
      
                <widget remove="summary_current_document_relations"/>
      
              </row>
            </rows>
          </layout>
        </extension>
      
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 4 hours
                  4h
                  Remaining:
                  Remaining Estimate - 4 hours
                  4h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified