Replies: 1 comment 1 reply
-
|
Plans? Definitely. Concrete ones? Not quite yet. I imagine we'll do something along the lines of that Statamic does which would allow plugin developers to register their own Vue components to be rendered within the CP. import CustomComponent from './path/to/custom-component';
window.Craft.booting(({components}) => {
components.register('custom-component', CustomComponent);
});For full pages, I'm currently thinking we'll take the second approach you mentioned and provide plugin developers layouts they can use. At the least we'll provide composables or something that will let you replicate our layouts without too much trouble. |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Just a quick question as it would kinda influence the way I am going to work with Craft and the way I'll prepare my code.
Are there any plans to execute hooks/callbacks during your intertia initialization?
I am talking about this part:
cms/resources/js/bootstrap/cp.ts
Lines 81 to 103 in 4cfed41
Since you already published a few packages of yours (thank you very much for that, it's an awesome way to interact with the CP) it would be an incredible way to have a custom / empty Interia view with just an empty
<component :istemplate where we as plugin developers could hook into and register our custom component in your hook.Kinda like this
or
So we could do things like this:
Or even better
and you would then render a general AppLayout with our component (or even better make
'@/common/layouts/AppLayout.vue'usable for us). That would be change the way we could work with Craft and really be awesome.Btw Craft 6 is really awesome to use. I really like the direction you are going.
Beta Was this translation helpful? Give feedback.
All reactions