I’d like to embed the signup form for a ghost site on other sites - e.g. other ghost or static webpages. I can design the form, that’s not a problem, but I don’t know where to submit the form. Is there an API-based workaround (with CORS)?
We really need this
Yes, please give us this feature.
You can embed portal JS forms on any domain
data-ghost attribute value to include your ghost install location)
<script defer src="https://unpkg.com/@tryghost/portal@~0.15.0/umd/portal.min.js" data-ghost="https://yourghostdomain.com"></script>
Portal will then work the same as on your local Ghost site, and you can built HTML forms that post to Ghost in the same way you can in themes.
We plan to create more paths for this in future - but there aren’t many people experimenting with it yet, so it requires some willingness to do some tinkering/exploration
- hard-coding the form
actionso that it redirects to the portal and sends the magic link after arriving at Ghost
- setting the email via the portal URL
- setting a label via the portal URL, like