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
Comment #2
rajab natshahComment #3
rajab natshahComment #4
rajab natshahComment #5
rajab natshahComment #6
rajab natshahComment #9
rajab natshahComment #10
rajab natshahComment #11
rajab natshahComment #12
rajab natshah