- Issue created by @steve hanson
- Assigned to sheetal-wish
- 🇮🇳India sheetal-wish Indore
Hello Steve Hanson,
I have followed steps you have mentioned to reproduce issue.
on this step - Turn off the ability to have a custom layout for each node I am not able to do this step it does not allow to turn off this option without reverting node which has saved with custom layout on, I am not sure how you did it.
so here is the solution of your question - how in heavens name do I find the nodes that were set to have a custom layout so I can revert them?
You can write a custom script where you can find node is using custom layout or not for example:
$node = Node::load($nodeId); $entity_display_repository = \Drupal::service('entity_display.repository'); $view_display = $entity_display_repository ->getViewDisplay($node->getEntityTypeId(), $node->bundle()); $display = $view_display ->getThirdPartySetting('layout_builder', 'allow_custom');
here $display will have value 1 if node is using custom layout.
- Issue was unassigned.
- 🇺🇸United States steve hanson
Thank you for the script. All I had to do to turn off the custom setting was to turn it off in the display page. I'm a little surprised by all of this since as far as I can remember I never actually MADE any custom layouts, though I may have accidentally made one that was identical to the default.
So is the implication here that if I revert any custom ones and then turn off the ability to make custom ones that the automatic redirect will stop?
- 🇺🇸United States steve hanson
Oh, I think I understand. The odd behavior is because I am using the Varbase distribution and the Varbase layout builder landing page is apparently what is letting me disable the custom layouts. If I turn that module off I can no longer disable the custom layouts, which at least makes sense. I will go bother the Varbase folks. Thanks.
- Status changed to Closed: won't fix
9 months ago 4:37pm 2 April 2024 - 🇮🇳India Vivek Panicker Kolkata
@SteveHanson As the issue does not seem related to Drupal Core, I am closing this issue.
Please feel free to re-open in case you do not agree.
Thanks.