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

User can sort images using an orderby setting in Gallery block #15370

Open
cjyabraham opened this issue May 1, 2019 · 2 comments
Open

User can sort images using an orderby setting in Gallery block #15370

cjyabraham opened this issue May 1, 2019 · 2 comments
Labels
[Block] Gallery Affects the Gallery Block - used to display groups of images [Priority] Low Used to indicate that the issue at hand isn't a top priority to address and can be handled later [Type] Enhancement A suggestion for improvement.

Comments

@cjyabraham
Copy link

cjyabraham commented May 1, 2019

The gallery shortcode has an orderby parameter. Is it possible to move that functionality into the Gallery Block workflow? Perhaps the best place to put it is during the "Edit Gallery" phase where you can manually order the images. At that point you could have a drop-down above which allows for sorting by a field and then allow manual override after.

@cjyabraham cjyabraham changed the title Allow for orderby in Gallery block User can sort images using an orderby setting in Gallery block May 1, 2019
@Soean Soean added the [Block] Gallery Affects the Gallery Block - used to display groups of images label May 1, 2019
@youknowriad youknowriad added [Type] Enhancement A suggestion for improvement. [Priority] Low Used to indicate that the issue at hand isn't a top priority to address and can be handled later labels May 10, 2019
@draganescu
Copy link
Contributor

Thinking about this, while it looks priority low, I would say photo intensive sites could use default sorting by title or upload date or other image meta. However it does look like a plugin wouldl solve this a lot better than baking features into core.

Is this a feature the core gallery block should support (aside from the fact that the shorcode does)?

@af1
Copy link

af1 commented Jul 20, 2020

Thinking about this, while it looks priority low, I would say photo intensive sites could use default sorting by title or upload date or other image meta. However it does look like a plugin wouldl solve this a lot better than baking features into core.

Is this a feature the core gallery block should support (aside from the fact that the shorcode does)?

Yes. I want to sort the images and there's no way to do so. If I could sort, I could use the Gallery Block, sort, then convert them to single image blocks and be done. I could avoid: me having to use the classic editor, edit the HTML, copy out to Sublime Text, sort the lines, and paste back in.

I'm a photographer and my blog posts are almost all single images, not a gallery. No way am I reordering them by hand.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Gallery Affects the Gallery Block - used to display groups of images [Priority] Low Used to indicate that the issue at hand isn't a top priority to address and can be handled later [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

5 participants