How add a custom layout and switch different layout for the content? #16878
Replies: 3 comments 5 replies
-
I don't think we have built-in alternates for the Layout shape, but you don't need those for such a scenario anyway. Check out the different Content alternates: https://docs.orchardcore.net/en/latest/reference/modules/Templates/#content-templates |
Beta Was this translation helpful? Give feedback.
-
Why the Regarding your question, I have never seen such an alternate. Please elaborate of what you are trying to do |
Beta Was this translation helpful? Give feedback.
-
You can definitely use in C# - cshtml use |
Beta Was this translation helpful? Give feedback.
-
Sometimes, we need to create different layouts for the different content.
For now, the theme only has one "Layout.liquid" file, if I create a new layout file "Layout-LeftBar.liquid", how to use it?
Beta Was this translation helpful? Give feedback.
All reactions