Closed homotechsual closed 3 years ago
I think that this will be a good enhancement, thank you for your proposal!
I will work on this.
Just would like to double check that what I have implemented so far (on my fork) would satisfy the requirements.
What I've done so far:
true
, as for the other actions)data-custom-action-text
and data-custom-action-url
), for example:
<a href="mailto:info@mailgo.dev" data-custom-action-text="Open Activity" data-custom-action-url="https://dummy-url-to-test-custom-action?param1=test¶m2=123&email=info@mailgo.dev">info@mailgo.dev</a>
This will only work when mailgo is used with mailto: links. So it is not supported, for now, with tel: or callto: links and with mailgo direct render.
@MikeyMJCO Would this work for you?
Absolutely :-) this is fantastic and fills the gap we had exactly :-)
Great, good to know! I will submit a PR so my changes can be reviewed in more detail.
Thank you again for your work @gianantoniopini! I have now added a new page in the docs to specify the instructions for the custom actions. If you want to help me to write it: https://mailgo.dev/docs/custom-actions. The file is a simple markdown file and it is this one: https://github.com/manzinello/mailgo.dev/blob/master/docs/custom-actions.md. If you can't no problem, I will write it. I am proposing it to you because you have developed this functionality and maybe you want your name on mailgo.dev page as an author! Thank you again.
@manzinello Pleasure to be able to contribute! Yes I can help to write the docs related to custom actions. I will submit a PR with the additions to the custom-actions.md file.
Is it possible for us to pass a link to MailGo as an option and have it rendered as a custom action?
For example, in the CiviCRM integration it would be beneficial if we could replicate a core function when we override email links. That core function lets us create a CRM "activity" when clicking on an email. If we could add an "Open activity" action - we'd replicate the current status quo and add the amazing additional options provided by MailGo :-)