Posted by Aws_law on August 19, 2009 at 6:40am
Jump to:
| Project: | CiviCRM Subscribe |
| Version: | 6.x-1.x-dev |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
Hi!
It's a very useful module.
And it may be very useful to generate subscribe form code to put on other sites.
It will greatly increase its functionality.
I tried to do it myself but failed)
How to do it?
Comments
#1
Are you trying to add the subscribe form to another Drupal site, or a non-Drupal site? Note that if you put it on a site that is non-Drupal, and is at a separate domain, this could cause cross-site request forgery.
If you are not concerned about this, though, you can simply copy the form HTML and make sure that the form is set to post to the absolute path of the subscribe page. Or, if you are embedding on a Drupal site, you can find out the form ID and call drupal_get_form() to render the HTML.
Please mark this issue fixed if it answers your question.
#2
This module is intended to add subscribe forms to Drupal sites, not to other external sites. A CiviCRM profile that has an action set to add a user to a group can be added to any arbitrary site, if you get the HTML for it.
See the CiviCRM FLOSS Manual section called Capturing & Exposing Data for more information: http://en.flossmanuals.net/CiviCRM/CapturingExposing. More specifically, see the sub-section called Linking to Your Form.
#3
I'm going to consider this as fixed.
#4
Automatically closed -- issue fixed for 2 weeks with no activity.