Problem/Motivation

Requested by Razem

There’s an enhancement that can be done here:
https://git.drupalcode.org/project/varbase_layout_builder/-/blob/8.x-1.x...

if (!empty($edit_layout_url) && LAYOUT_SELECTION FIELD IS -NONE- && USER HAS PERMISSION TO MANAGE LAYOUT) {

because if a user chooses a layout from the available options, you don’t need to send them to the managed layout.

Steps to reproduce

Given that a content type does have a number of Layout library preset layouts
When an editor create new content
And select any layout in the list
Then the system should not redirect to change the layout


Which it's not the case at this time

Proposed resolution

Restrict with:

  • LAYOUT_SELECTION FIELD IS -NONE-
  • USER HAS PERMISSION TO MANAGE LAYOUT

Remaining tasks

  • Change the logic
  • Test
  • Release

User interface changes

  • No redirect to change layouts when a layout has been selected on the creation of content

API changes

  • None

Data model changes

  • None

Comments

RajabNatshah created an issue. See original summary.

rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

Issue summary: View changes
rajab natshah’s picture

rajab natshah’s picture

Issue summary: View changes

  • RajabNatshah committed ba11df3 on 9.0.x
    Issue #3180646: Enhance the logic on creation of contents with layout...

  • RajabNatshah committed f269b5d on 8.x-1.x
    Issue #3180646: Enhance the logic on creation of contents with layout...
rajab natshah’s picture

Assigned: rajab natshah » mohammed j. razem
Status: Active » Needs review
Issue tags: +varbase-8.8.8, +varbase-9.0.0, +varbase-9.0.0-beta1
rajab natshah’s picture

Assigned: mohammed j. razem » Unassigned
rajab natshah’s picture

Status: Needs review » Fixed
rajab natshah’s picture

Title: Enhance the logic on creation of contents with layout library selected layout. the system should not redirect to change the layout » Enhance the logic on the creation of contents with layout library selected layout. the system should not redirect to change the layout

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.