Override Statamic 6 EntriesPublishForm #13923
-
|
I know this sounds stupid. But what I want to achieve is adding a button / section / etc. on all EntryPublishForms.vue Components. So in Statamic v5 I could update the blade-file, but this is not good in Statamic v6, as I want the Inertia speed. So my thought process was: Statamic.component('EntryPublishForm', CustomEntryPublishForm);Which is basically a copy of the original EntryPublishForm with an additional button / section / etc. (which I of course would need to maintain if the file changes in statamic/cms). The Problem: The Statamic components get registered last directly before the Vue-App is mounted. Any ideas how I could still override the EntryPublishForm? Or would I need a Hook in Statamic which runs after the statamic components are registered? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Unfortunately, you can't override Statamic's components. What are you looking for the button to do? Maybe there's another way to do what you're after. |
Beta Was this translation helpful? Give feedback.
I'd probably go with a custom fieldtype in that case and place the field in the sidebar 👍