Is it possible to add additional form fields to the ghost membership page and/or profile so I can more easily integrate with another site? I effectively want to collect a username for another site to give additional access on that site. (Using email is not sufficient.)
Option 1 - fork the Ghost core. Not really a good option, since then you’d have to keep up with updates and could only self-host (although maybe that’s not a problem).
Hi, thanks for your explanation.
How can I implement that?
Thanks for answering,
You’re also going to need to read about fetch (or axios).
You’ll need to set up some service listening for those fetch POSTs and recording that they’ve happened. And you’ll need to make the request to the Ghost API to send the magic link also.
This might be a bit too much indeed. As a temp. Workaround, can I change destination url of the subscription button ? I like the button as it is, but I require some extra input from subscribers. I have a great form on another website (Wordpress) so redirecting there would be great…
You can certainly change the destination of a form (that isn’t Portal) on your site. Without knowing what your site is or what ‘subscription’ button you refer to, that’s all I can offer. (If you’re talking about the Portal pop-over window, that’s not user editable. But you can turn it off and cause a button to take users to some other form.)
Remember that if you send subscriptions to some other site, you’ll need to somehow sync between that other site and Ghost, if there are subscriber features on Ghost that you want your members to have access to.
I should have been more precise, but I managed to fix it. I created an alternative form on a new page. Then I set subscription to |“nobody|”. That makes the original button dissapear. Then I created a new button with CSS that floats at the bottom, just like the original subscription button. In code injection I copied the code so it shows on all pages. I linked the button to my new subscription form: tadaaa…works well. Have a look:
Thanks for the help. Kind regards,