Issue Feature Closed

#87435Allow change of order of content elements in new content element wizards

Bernhard Eckl 01/14/19, 21:45 updated 03/31/26, 09:00

Description

In the new content element wizard only the order of tabs can be adjusted, but not the order of the content elements.

Reviews 1

History 514

  1. Christian Weiske commented 08/05/25, 13:25

    Workaround in TYPO3 v11.5 and v12 with mask: Defining a new group and adding the elements in the desired order there.

    mod.wizards.newContentElement.wizardItems {
        mycontentelements {
            header = Content elements
            show = *
            elements {
                #A
                mask_article_card < mod.wizards.newContentElement.wizardItems.mask.elements.mask_article_card
                mask_article_list < mod.wizards.newContentElement.wizardItems.mask.elements.mask_article_list
    
                #B
                mask_box_shadow < mod.wizards.newContentElement.wizardItems.mask.elements.mask_box_shadow
                mask_link_as_button < mod.wizards.newContentElement.wizardItems.mask.elements.mask_link_as_button
            }
        }
    
        mask {
            elements >
        }
    }
  2. Benni Mack changed Sprint Focus On Location Sprint 08/07/25, 11:54

  3. Gerrit Code Review pushed patch set 1 for main to change 91340 status New Under Review 10/29/25, 15:39

  4. Fabien Udriot commented 10/29/25, 16:09

    How to test the patch?

    1. Enable ext:styleguide and create a default file structure (optional)

    2. Open TYPO3 backend and navigate to a page in the page module and click “New Content Element” button to open the wizard

    3. Note the default order of elements in the “Typical page content” tab:
    – Header only
    – Regular Text Element
    – Text & Images
    – Images only
    – Text & Media

    4. Add Page TSconfig to a page or in root page TSconfig (e.g into typo3/sysext/styleguide/Configuration/page.tsconfig` :

       mod.wizards.newContentElement.wizardItems {
           default.elements {
               text {
                   before = header
               }
               textmedia {
                   before = textpic
               }
           }
       }

    5. Clear system cache

    6. Open the “New Content Element” wizard again

    7. Verify the new order in “Typical page content” tab:
    – Regular Text Element (text) should appear before Header only (header)
    – Text & Media (textmedia) should appear before Text & Images (textpic)

    8. Test with multiple references:

       text {
           before = header,image
       }

    9. Verify elements without explicit dependencies maintain their relative order

  5. Gerrit Code Review pushed patch set 2 for main to change 91340 10/29/25, 16:17

  6. Gerrit Code Review pushed patch set 3 for main to change 91340 10/29/25, 19:54

  7. Gerrit Code Review pushed patch set 4 for main to change 91340 02/03/26, 15:17

  8. Gerrit Code Review pushed patch set 5 for main to change 91340 02/03/26, 15:34

  9. Gerrit Code Review pushed patch set 6 for main to change 91340 02/04/26, 09:17

  10. Gerrit Code Review pushed patch set 7 for main to change 91340 02/04/26, 09:49

  11. Gerrit Code Review pushed patch set 8 for main to change 91340 02/04/26, 10:48

  12. Gerrit Code Review pushed patch set 9 for main to change 91340 02/04/26, 15:15

  13. Anonymous commented and changed status Under Review Resolved done 0 % 100 % 02/05/26, 09:15

    Applied in changeset commit:e11bf777ad79aea063ae993db75cf0ab52f7cc26.

  14. Benni Mack changed status Resolved Closed 03/31/26, 09:00