Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add settings to sort layouts of flexible content alphabetically #96

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sh-sabbir
Copy link

This PR adds an additional option in Flxible Content -> Selection Modal to allow users to sort the layouts alphabetically.
In order to achieve this and make the settings good-looking, minor CSS adjustment is also made.
https://prnt.sc/22a9xgg

@mcaskill
Copy link

A while back we implemented a similar flexible content layout sorting mechanism. In our case, layouts can be assigned a position value to ensure layouts before/after others. We mostly used it to ensure certain layouts always appeared first or last.

https://github.com/locomotivemtl/wp-lib-cms/blob/7601919/includes/Modules/ACF/FieldTypes.php#L271-L329

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants