Answers.Body: <p>One way (if I understand correctly what you are after) would be to create a view that displays the node <em>(or node's fields -- image, first_name, description)</em> as you want it using a Block display for the view. Set up a contextual argument for the node's <code>nid</code> which provides a default value using PHP code and pull the <code>appeal</code> variable from the URL, something like this:</p>
  
  <pre><code>check_plain($_GET['appeal');
  </code></pre>
  
  <p>Then simply display this block at the top of the <code>content</code> region in your default theme for the <code>civicrm/contribute/transact</code> path.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-06-02T08:56:59.960Z
Answers.Text: If your contextual filter drop down list for "Provide default value " does not contain "PHP Code" you will need to go to the modules and enable "PHP filter"
Answers.UserDisplayName: mike_kc
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-05-29T03:35:53.693Z
Answers.LastActivityDate: 2015-05-29T03:35:53.693Z
Answers.UserDisplayName: Laryn
Body: <p>I have a contribution page that uses values passed via URL to track specific information about the source of the contribution.</p>
  
  <p>www.domain.org/civicrm/contribute/transact?reset=1&amp;id=8&amp;campaign=sponsorship&amp;appeal=11&amp;fund=child&amp;amount=35.00</p>
  
  <p>The <code>appeal</code> variable in the URL contains the nid (node id) for Drupal content. I would like to display image, first_name, and description of the child, pulled from this node.</p>
  
  <p>Would a profile be used here or use the code extension created for tracking the source? </p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-05-29T02:22:19.253Z
Comments.Text: When you say "node" you mean a Drupal node?
Comments.UserDisplayName: Coleman
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-05-29T02:53:51.590Z
Comments.Text: Yes, sorry.  The node content type called sponsorship.  it contains information about a person, place, or thing that can be sponsored.
Comments.UserDisplayName: mike_kc
Tags: <drupal><developer>
Title: What is the best way to change the intro on a Contribution page based on URL?
ThreadText: # What is the best way to change the intro on a Contribution page based on URL?
  
  (Asked by: username_0 on 2015-05-29)
  
  I have a contribution page that uses values passed via URL to track specific information about the source of the contribution.
  
  www.domain.org/civicrm/contribute/transact?reset=1&id=8&campaign=sponsorship&appeal=11&fund=child&amount=35.00
  
  The `appeal` variable in the URL contains the nid (node id) for Drupal content. I would like to display image, first\_name, and description of the child, pulled from this node.
  
  Would a profile be used here or use the code extension created for tracking the source?
  
  **Tags:** drupal, developer
  
  > **Comments:**
  > **username_1**: When you say "node" you mean a Drupal node?  
  > **username_0**: Yes, sorry.  The node content type called sponsorship.  it contains information about a person, place, or thing that can be sponsored.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2015-05-29. Score: 2 | Accepted answer
  
  One way (if I understand correctly what you are after) would be to create a view that displays the node (or node's fields -- image, first_name, description) as you want it using a Block display for the view. Set up a contextual argument for the node's nid which provides a default value using PHP code and pull the appeal variable from the URL, something like this:
  check_plain($_GET['appeal');
  
  Then simply display this block at the top of the content region in your default theme for the civicrm/contribute/transact path.
  
  > **Comments:**
  > **username_0**: If your contextual filter drop down list for "Provide default value " does not contain "PHP Code" you will need to go to the modules and enable "PHP filter"  
  
  ---
  
  