Skip to content

FEAT: [Admin] #100 add order functionality for content elements#159

Open
crydotsnake wants to merge 1 commit into
Sylius:1.2from
crydotsnake:feature/100/add-order-functionality-for-content-elements
Open

FEAT: [Admin] #100 add order functionality for content elements#159
crydotsnake wants to merge 1 commit into
Sylius:1.2from
crydotsnake:feature/100/add-order-functionality-for-content-elements

Conversation

@crydotsnake
Copy link
Copy Markdown
Member

@crydotsnake crydotsnake commented May 9, 2026

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Related tickets fixes #100
License MIT

Description

This pull request adds the functionality to be able to order content elements when editing pages, or blocks in the admin section:

2026-05-09.12-03-57.mp4

I also adjusted the UI since two new buttons for order elements up, and down have been added.

image

Changes

The main logic for the ordering is in the Stimulus controller: ContentElementsOrderController. And in the templates/admin/shared/component_elements/form_theme.html.twig file the stimulus_actions moveUp and moveDown are called.

I also included a Behat test file and also adjusted the UPGRADE-1.2.md file.

@crydotsnake crydotsnake requested a review from a team as a code owner May 9, 2026 10:10
@crydotsnake crydotsnake self-assigned this May 9, 2026
@crydotsnake crydotsnake added Admin Admin Panel related issues and PRs. Feature New feature proposals. UX Issues and PRs aimed at improving User eXperience. labels May 9, 2026
@crydotsnake crydotsnake force-pushed the feature/100/add-order-functionality-for-content-elements branch from 1c16da3 to ec0396e Compare May 9, 2026 10:11
@crydotsnake
Copy link
Copy Markdown
Member Author

I'm not sure about the namings 😬
ContentElementsOrderController, content-elements-order..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Admin Admin Panel related issues and PRs. Feature New feature proposals. UX Issues and PRs aimed at improving User eXperience.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sorting and ordering is not possible

1 participant