Answers.Body: <p>You may want to try using Smarty debugging.  </p>
  
  <ul>
  <li>Turn on debugging at <strong>Administer menu > System Settings > Debugging 
  and Error Handling</strong>.</li>
  <li>Load the same URL, but add "&amp;SmartyDebug=1" to the end.</li>
  <li>You may need to enable pop-ups in your browser to see the window that appears.</li>
  </ul>
  
  <p>Hopefully access to the Smarty debugging will make it clear what the value of $row.component is.  </p>
  
  <p>Alternatively, you could just add "$row.component" to the template inside the "if" statement.  I'd guess it's not showing either "event" or "contribute", but something else altogether.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-07-06T14:20:42.760Z
Answers.LastActivityDate: 2015-07-06T14:20:42.760Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Body: <p>The list of campaign pages under 'create a personal campaign page for another page' list is a little wonky. IT has three basic columns 
  1. Name of page with hyperlink
  2. End date or 'ongoing'
  3. Create a PCP hyperlink.</p>
  
  <p>The hyperlink in the first column is incorrect - I checked the demo site, it is wrong there as well. I tracked it down as far as the template Contribution>Page>PcpUserDashboard</p>
  
  <p>In that file (line 80 in 4.6.4) it lists</p>
  
  <pre><code>{if $row.component eq 'contribute'}
  &lt;a href="{crmURL p='civicrm/contribute/transact' q="id=`$row.pageId`&amp;reset=1"}" 
  
  {else}
  &lt;a href="{crmURL p='civicrm/event/register' q="id=`$row.pageId`&amp;reset=1"}
  
  {/if}
  </code></pre>
  
  <p>Every link listed is the 'else' option (a event link) even when it's a contribution page. I'm not sure what part of the if statement is going wrong. I tried a few variations in this template to no avail. I also tried poking through the php but was unable to figure it out.</p>
  
Tags: <civicontribute><contribution-page><pcp><dashboard>
Title: PCP list on contact dashboard
ThreadText: # PCP list on contact dashboard
  
  (Asked by: username_0 on 2015-07-05)
  
  The list of campaign pages under 'create a personal campaign page for another page' list is a little wonky. IT has three basic columns 
  1. Name of page with hyperlink
  2. End date or 'ongoing'
  3. Create a PCP hyperlink.
  The hyperlink in the first column is incorrect - I checked the demo site, it is wrong there as well. I tracked it down as far as the template Contribution>Page>PcpUserDashboard
  In that file (line 80 in 4.6.4) it lists
  {if $row.component eq 'contribute'}
  
  Every link listed is the 'else' option (a event link) even when it's a contribution page. I'm not sure what part of the if statement is going wrong. I tried a few variations in this template to no avail. I also tried poking through the php but was unable to figure it out.
  
  **Tags:** civicontribute, contribution-page, pcp, dashboard
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-07-06. Score: 1
  
  You may want to try using Smarty debugging.
  
  * Turn on debugging at **Administer menu > System Settings > Debugging
    and Error Handling**.
  * Load the same URL, but add "&SmartyDebug=1" to the end.
  * You may need to enable pop-ups in your browser to see the window that appears.
  
  Hopefully access to the Smarty debugging will make it clear what the value of $row.component is.
  
  Alternatively, you could just add "$row.component" to the template inside the "if" statement. I'd guess it's not showing either "event" or "contribute", but something else altogether.
  
  
  ---
  
  