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) »
  • Discussion (deprecated) »
  • Documentation, Book and Training Resources (Moderator: Michał Mach) »
  • Documentation Error in Mail-merge Tokens
Pages: [1]

Author Topic: Documentation Error in Mail-merge Tokens  (Read 1497 times)

bsilvern

  • I’m new here
  • *
  • Posts: 14
  • Karma: 2
  • CiviCRM version: 4.6
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.37-0+wheezy1
  • PHP version: 5.4.4-14+deb7u10
Documentation Error in Mail-merge Tokens
February 18, 2012, 01:32:37 pm
I'm a newbie, but It appears that the URL syntax shown in the "More On Checksum Tokens" section of wiki.civicrm.org/confluence/display/CRMDOC41/Mail-merge+Tokens+for+Contact+Data is incorrect (sorry, this forum will not allow me to post it as a link).

There are 6 examples provided having the form of
myorganization.org/civicrm/contribute/transact?reset=1&id=*N*&\{contact.checksum\}&cid=\{contact.contact_id\}

There are three different issues with these URL's:
  • I believe that "\{contact.checksum\}" must be preceded by "cs=". I say this because I found that without the "cs=", the form is not pre-populated based on the cid. I found the cs field name in sites\all\modules\civicrm\CRM\Event\Form\Registration.php, and when I changed the URL to include the "cs=" the form was displayed properly pre-populated.
  • I don't know why the { and } are shown escaped with \. I created the links in my email without them and it worked as expected. Perhaps this was a failed attempt by the author to properly display the brackets in the HTML documentation.
  • I don't know why each URL is shown two times. Perhaps this was also an HTML coding error in the documentation.


Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Documentation Error in Mail-merge Tokens
February 21, 2012, 03:09:00 pm
Thx for reporting this. I've removed the unneeded backslashes, and the duplicate URLs. However, as far as I know the basic syntax for the URL is correct in these examples. The {contact.checksum} token should evaluate to "cs=thechecksumtokenhere", so the extra "cs=" is not needed.

http://www.myorganisation.org/civicrm/profile/edit?reset=1&gid=N&id={contact.contact_id}&{contact.checksum}
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Documentation, Book and Training Resources (Moderator: Michał Mach) »
  • Documentation Error in Mail-merge Tokens

This forum was archived on 2017-11-26.