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.

Comments

Rajan M’s picture

Assigned: Unassigned » Rajan M

Hi stella,

I will review the patch, and commit it.

Thanks for the support :)

Rajan M’s picture

Hi 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

stella’s picture

We 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

donquixote’s picture

Issue summary: View changes

Iframe 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:

Have you looked at webform_civicrm integration? That module can do exactly that - embed a contribution form within a drupal form. And you can stick it in a block if you want.

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.