Answers.Body: <p>I don't think it'll work, no. Normally this might be done with <code>&amp;snippet=1</code>, but it looks like that has a different meaning on contribute pages:</p>
  
  <ul>
  <li><a href="http://d45.demo.civicrm.org/civicrm/contribute/transact?id=1" rel="nofollow">http://d45.demo.civicrm.org/civicrm/contribute/transact?id=1</a></li>
  <li><a href="http://d45.demo.civicrm.org/civicrm/contribute/transact?id=1&amp;snippet=1" rel="nofollow">http://d45.demo.civicrm.org/civicrm/contribute/transact?id=1&amp;snippet=1</a></li>
  </ul>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-01T03:08:09.267Z
Answers.Text: I'd love to see CiviCRM's Contribution API solid enough that we could build donation and other forms without having to use the built-in forms (which means dealing with HTML_QuickForm & Smarty if you want to diverge from CiviCRM's defaults). We run into this frequently, but getting enough energy behind it to address the required work never seems to come together ... how can we make it happen?
Answers.UserDisplayName: Chris Burgess
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-01T03:06:20.373Z
Answers.LastActivityDate: 2015-09-01T03:06:20.373Z
Answers.UserDisplayName: Chris Burgess
Body: <p>Normally Webforms would be a go-to solution but I have an urgent need and it is lacking recurring contributions + a few other necessities.  </p>
  
  <p>I have a contribution page and would like to put in panels or a drupal block.  I realize I can display a drupal block on a contribution page, but is it possible to display the page (no header, footer, etc.) in a block using an API call?  I know hooks are used when civicrm creates a page but I'm looking to do this in a drupal block (without something crazy like an iframe?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-02T09:23:29.307Z
Comments.Text: well if you're desperate, might it work to iframe it?
Comments.UserDisplayName: Jonathan
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-02T13:50:05.147Z
Comments.Text: possibly.  I don't think I'm that desperate :)  I also need to set some javascript so getting a bit nasty that way. Will probably use drupal blocks on form (and document here when I can.)
Comments.UserDisplayName: Sonicthoughts
Tags: <drupal><contribution-page>
Title: How to display a contribution page in a drupal block (NOT USING WEBFORM)
ThreadText: # How to display a contribution page in a drupal block (NOT USING WEBFORM)
  
  (Asked by: username_0 on 2015-08-31)
  
  Normally Webforms would be a go-to solution but I have an urgent need and it is lacking recurring contributions + a few other necessities.
  
  I have a contribution page and would like to put in panels or a drupal block. I realize I can display a drupal block on a contribution page, but is it possible to display the page (no header, footer, etc.) in a block using an API call? I know hooks are used when civicrm creates a page but I'm looking to do this in a drupal block (without something crazy like an iframe?
  
  **Tags:** drupal, contribution-page
  
  > **Comments:**
  > **username_1**: well if you're desperate, might it work to iframe it?  
  > **username_0**: possibly.  I don't think I'm that desperate :)  I also need to set some javascript so getting a bit nasty that way. Will probably use drupal blocks on form (and document here when I can.)  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2015-09-01. Score: 1
  
  I don't think it'll work, no. Normally this might be done with `&snippet=1`, but it looks like that has a different meaning on contribute pages:
  
  * <http://d45.demo.civicrm.org/civicrm/contribute/transact?id=1>
  * <http://d45.demo.civicrm.org/civicrm/contribute/transact?id=1&snippet=1>
  
  > **Comments:**
  > **username_2**: I'd love to see CiviCRM's Contribution API solid enough that we could build donation and other forms without having to use the built-in forms (which means dealing with HTML_QuickForm & Smarty if you want to diverge from CiviCRM's defaults). We run into this frequently, but getting enough energy behind it to address the required work never seems to come together ... how can we make it happen?  
  
  ---
  
  