Currently you can use the module to add a link or display the title of a referenced civicrm form. I'd like the ability to embed the referenced form in an iframe. The attached patch provides this option.
| Comment | File | Size | Author |
|---|---|---|---|
| civicrm_reference_fields_iframe_formatter.patch | 1.72 KB | stella |
Comments
Comment #1
Rajan M commentedHi stella,
I will review the patch, and commit it.
Thanks for the support :)
Comment #2
Rajan M commentedHi stella,
I gone through the patch, I don't think displaying the whole CiviCRM page in a field display is good idea.
If you have any other option please let me know.
Rajan
Comment #3
stella commentedWe use the admin theme for CiviCRM admin pages, and then the default theme for public facing pages such as the contribution and event pages. Since those pages are only ever visible via the iframe, we added a page--civicrm.tpl.php in our custom theme which removes the page chrome (i.e. headers, menus and footers). It just returns the content of the page, which is exactly what we want.
Our site has gone live now, so you can see it in action at https://www.nala.ie/support-us/donate
Comment #4
donquixote commentedIframe formatter seems a useful option.
And I think to vaguely remember that CiviCRM can receive a GET parameter to disable most of the decorations.
Otherwise (as a second formatter option) it would be nice to embed the contribution page as a real embedded form.
http://forum.civicrm.org/index.php?topic=31634.0 Coleman says:
Although Xavier says he'd prefer the Drupal stuff to be embedded in the CiviCRM page instead of the other way.
I think both can make sense, so having these formatters would definitely be useful.