CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • PCP tell a friend - adding a suggested message Question
Pages: [1]

Author Topic: PCP tell a friend - adding a suggested message Question  (Read 1055 times)

nightlrd

  • I post occasionally
  • **
  • Posts: 62
  • Karma: 0
  • CiviCRM version: 3.4
  • CMS version: Joomla 1.5
PCP tell a friend - adding a suggested message Question
November 23, 2009, 01:02:16 pm
Hi all,

I am trying to add a suggested message to the tell-a-friend option for a PCP. in the tpl <CRM/Friend/Form.tpl> there seems to be a call to a
Code: [Select]
<td class="label font-size12pt">{$form.suggested_message.label}</td>
<td>{$form.suggested_message.html}</td>
.
Where can I find that and how would I activate it so the Friend form displays it?

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: PCP tell a friend - adding a suggested message Question
November 23, 2009, 05:09:06 pm
A "suggested_message" value is currently not stored in the DB / not available for the PCP Tell-a-friend workflow. To implement this consistently, you'd need to add code to collect and save a civicrm_tell_friend record for each pcp_block record. If you're interested in contributing code or sponsoring this enhancement, ping me directly - dave at civicrm dot org.

OR ... you can probably implement a work-around in custom copy of CRM/Friend/Form.tpl - using the smarty conditional which is used higher up

Code: [Select]
{if $context EQ 'pcp'}
  ... add javascript to write your desired default text into the suggested_message field
{/if}
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • PCP tell a friend - adding a suggested message Question

This forum was archived on 2017-11-26.