Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-5271

ContentType based Content App's View: order 'status' & 'moddate' can not be changed.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 6.1
    • configuration, content app
    • None

      The virtual app created by content types have OTB a 'status' & 'moddate" column "virtually"

      Problem:

      When adding more column views (as most apps will), moddate & status are always on second and third place, no matter what is added additionally (see print screen).

      This is very annoying, as in all other apps its usually the two last ones. 

       

      The code on use (the content apps config):

      !content-type:event
      name: events
      label: Events
      icon: icon-calendar
      
      subApps: 
        detail:
          editor:
            form:
              tabs:
                - name: default
                  fields:
                    - name: eventType
                      fieldType: select
                      label: Event Type
                      options:
                        - name: workEvent
                          value: workEvent
                          label: Work Event
                        - name: holiday
                          value: holiday
                          label: Holiday
                        - name: familyEvent
                          value: familyEvent
                          label: Family Event
                        - name: other
                          value: other
                          label: Other
                          selected: true
                          
        browser:
          workbench:
            contentViews:
              - name: tree
                class: info.magnolia.ui.workbench.tree.TreePresenterDefinition
                columns:
                  - name: jcrName
                    propertyName: jcrName
                    sortable: true
                    label: Event name
                    class: info.magnolia.ui.workbench.column.definition.PropertyColumnDefinition
                  - name: location
                    propertyName: location
                    sortable: true
                    label: Location of Event
                    class: info.magnolia.ui.workbench.column.definition.PropertyColumnDefinition
                  - name: date
                    propertyName: date
                    sortable: true
                    label: Date of Event
                    class: info.magnolia.ui.workbench.column.definition.PropertyColumnDefinition
                  - name: eventType
                    propertyName: eventType
                    sortable: true
                    label: Type of Event
                    class: info.magnolia.ui.workbench.column.definition.PropertyColumnDefinition
                  - name: status
                    formatterClass: info.magnolia.ui.workbench.column.StatusColumnFormatter
                    sortable: true
                    label: Status
                    displayInChooseDialog: false
                    width: 45
                    class: info.magnolia.ui.workbench.column.definition.StatusColumnDefinition
                  - name: moddate
                    propertyName: mgnl:lastModified
                    formatterClass: info.magnolia.ui.workbench.column.DateColumnFormatter
                    sortable: true
                    label: Modification date
                    displayInChooseDialog: false
                    width: 160
                    class: info.magnolia.ui.workbench.column.definition.MetaDataColumnDefinition
                    
      

        Acceptance criteria

              Unassigned Unassigned
              cringele Christian Ringele
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:

                  Bug DoR
                  Task DoD