Hello,
I would like to add YesNo button in the form of the email. This specific field will be in my plugin I’m currently developping. It will not a new field of the email entity.
My question is : is it possible to extend the email view form? Can I create in my plugin a view form.html.php
which extends from Email content view MauticEmailBundle:Email:form.html.php
? Is there a ready to go extending form like UI extending ?
joeyk
September 30, 2024, 11:49am
2
Hello,
Is this PR pointing you at the right direction?
mautic:4.x
← ChrisRAoW:feature/customcontent-tabs
opened 07:24AM - 02 Sep 21 UTC
| Q | A
| --------------------------------… ------ | ---
| Branch? | features
| Bug fix? |no
| New feature? | no
| Deprecations? | no
| BC breaks? | no
| Automated tests included? | no
| Related user documentation PR URL | not provided
| Related developer documentation PR URL | not provided
| Issue(s) addressed | not provided
I'm currently developing a plugin where I want to extend the email form template. I want to implement a new tab where i can insert additional settings to. These "hooks" give me te possibility to do so.
<a href="https://gitpod.io/#https://github.com/mautic/mautic/pull/10401"><img src="https://gitpod.io/button/open-in-gitpod.svg"/></a>
Joey
Sounds good. This exactly what I was loking for. If I understand well I will be able to add a custom tabs in the template form.
I’m checking how to use it and give an answer of my implementation.
I use CoreEvents::VIEW_INJECT_CUSTOM_CONTENT
event and try to add my custom form there.
I can see that CoreEvents::ON_FORM_TYPE_BUILD
best fit in my case but is deprecated.
I need that this field is submitting at the same time of the “Save” email.