verbb / vizy

A flexible visual editor for Craft CMS
Other
43 stars 8 forks source link

Re-orderable Block Configuration #215

Open JshGrn opened 1 year ago

JshGrn commented 1 year ago

What are you trying to do?

I would like to be able to re-order the blocks within a group, it would be even better if I could move blocks between groups.

What's your proposed solution?

Drag and drop order of blocks, and if between groups then drag and drop between groups too.

Additional context

The reason this is useful is because I may choose to have multiple Vizy fields that do not need to be nested, however they may share a similar block, it would be good for the user experience to know the order/name of the blocks. I currently can't make the order of the blocks the same between Vizy fields which throws off the user sometimes looking for a block.

engram-design commented 1 year ago

If you're referring to the block types for a Vizy field in the settings, you certainly can re-order block types, including moving them to different groups.

https://user-images.githubusercontent.com/1221575/234419745-aab49862-e0d2-43b8-a25e-8ed951084e71.mp4

JshGrn commented 1 year ago

Oh! Is this new? I thought I had tried it before! Closed :)

engram-design commented 1 year ago

Nope! It's been there since release 😁

JshGrn commented 11 months ago

I now see what I struggled with, create a new group and try to drag into that, you need a block in there first - can this be added or should that work for me?

engram-design commented 11 months ago

Hmm, that should work as well! The dropzone will be between the block type squares, and in this case, when there's none, it's in front of the empty placeholder square.

Screen Shot 2023-07-21 at 8 04 40 pm