Would it be possible to set a layout for specific folders of pages? #13630
-
As the title says, is there any way I can define a file that's within a folder of pages, that gets passed a children prop with the content of the current child page. For example, lets say I have a Hope that makes sense and thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
This is not possible yet, you can track this issue: #10361 const SettingsCollaboratorsPage = () => (
<SettingsLayout>
...
</SettingsLayout>
); |
Beta Was this translation helpful? Give feedback.
-
The way I do that is by allowing the page to define which layout it should use. But that's not automated. But it allows me to do it per folder, manually. |
Beta Was this translation helpful? Give feedback.
This is not possible yet, you can track this issue: #10361
The solution now is to create layout components (like
SettingsLayout
) and compose your page components with these components: