Best approach to render Field Layouts in plugins in Craft 6? #19380
Unanswered
BenParizek
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I have a plugin that has CP settings screens that are rendered through CpScreenResponse using
->contentTemplate()(using Blade) rather than->inertiaPage(). The plugin does not use the yii adapter and aims to use Craft 6's Laravel codebase entirely.Several of these screens embed a field-layout designer and/or CP tabs.
Those components worked on 6.0.0-alpha.14. After upgrading to 6.0.0-alpha.16, I can no longer interact with the field-layout designers (no drag and drop, no fields selector) and the Tab layouts don't switch tabs.
In Craft 6, is there a supported way for a plugin to render a field-layout designer (and CP tabs) in a CpScreenResponse when the plugin doesn't ship its own Inertia/Vue page component?
All reactions