In This Article:

    Change a TAF to show the person-to-person donation page's title

    In This Article:

      Background

      When a person signs up to host a Person-to-Person (P2P) donation page, the last step is to use a Tell-A-Friend (TAF) page to send mail to the host's friends.  When the TAF appears, it has a title configured in the P2P campaign by a campaign manager:

      2015-03-23_1210.png

      How would you like your page page not to have the configured subject...

      2015-03-23_1221.png

      But the title of the P2P page instead?

      2015-03-23_1237.png

      LIke that?  Read on!

      Solution

      The solution has two parts that are installed at the same time.  The first page queries the Salsa database for the title of the P2P page.  The second part uses Javascript to replaces the subject on the TAF page with the P2P's title.

       

      Note: Installing this solution will set the TAF subject to the P2P title on all P2P pages that use the same template.  If you will have P2P campaigns where the TAF subject should not be modified, then create a copy of your template, and use the copy to make the changes in this solution.

      Here are some steps that you can use:

      1. Edit the temp;late used by P2P campaigns.
      2. Locate the </body> tag.
      3. Insert a blank line after the </body> tag.
      4. Click on this link to view the solution scripts.
      5. When the page appears, click on the Raw button.  That will show the script in a window by itself.
      6. Copy the contents of the window, then close it.
      7. Paste the copied text into the blank link that was inserted before the </body> tag.
      8. Save the template.
      9. Assign the template to a P2P campaign.
      10. Test!

      Questions?

      If you have any questions, please gather this information:

      • Your template_KEY
      • Your chapter_KEY if you are in a chapter
      • The template_KEY for the modified template
      • The my_donate_page_KEY for a P2P page that has the modified template assigned
      • A brief description of the problem that you're seeing
      • A screenshot, if at all possible

      Send this information in a message to support@salsalabs.com, and we'll be glad to help.

      Was this article helpful?
      0 out of 0 found this helpful
      Have more questions? Submit a request

      Comments

      0 comments

      Please sign in to leave a comment.