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

Order blocks in sidebar doesn't respect layout restrictions: required and fixed position #6481

Open
avoinea opened this issue Nov 12, 2024 · 2 comments · May be fixed by #6489
Open

Order blocks in sidebar doesn't respect layout restrictions: required and fixed position #6481

avoinea opened this issue Nov 12, 2024 · 2 comments · May be fixed by #6489

Comments

@avoinea
Copy link
Member

avoinea commented Nov 12, 2024

order-sidebar-issues.webm

Steps to reproduce the behavior:

  1. Go to ControlPanel > Content Types
  2. Add new content type: Book
  3. Go to Layout for Book and enable editable blocks
  4. Click on Title block and then on Settings in the Sidebar
  5. Select "Required"
  6. Select "Fixed position"
  7. Click on the Order tab in Sidebar:
    • You are able to move the Title block and remove it from here.

Expected behavior

  1. If a block is required the delete button should not be present in the Sidebar Order Tab
  2. If a block has fixed position the drag & drop button should not be present in the Sidebar Order Tab

Software:

  • OS: All
  • Browser All
  • Volto Version 18.x.x
  • Plone Version 6.x
  • Plone REST API Version 9.x

Additional context

@plone plone deleted a comment from rishabdev2997 Nov 12, 2024
@plone plone deleted a comment from Tushargupta002 Nov 13, 2024
@plone plone deleted a comment from Aditya-PS-05 Nov 13, 2024
@plone plone deleted a comment from Gitnaseem745 Nov 14, 2024
@alihamza1221
Copy link

alihamza1221 commented Nov 18, 2024

@avoinea i am able to reproduce the issue also, the behaviour of add block button looks pretty confusing to me. like
we can create a new block but if button is disabled than the button don't show up.

@alihamza1221
Copy link

alihamza1221 commented Nov 19, 2024

@avoinea
!refernce issue video
Is this correct? should not it restrict creation of new blocks under restricted block?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Needs discussion
2 participants