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 »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Mailing Label Format issues
Pages: [1]

Author Topic: Mailing Label Format issues  (Read 449 times)

idmacdonald

  • I post occasionally
  • **
  • Posts: 69
  • Karma: 1
Mailing Label Format issues
May 28, 2013, 07:53:19 am
Hi,

Sometimes you want to print mailing labels but you don't actually want to print conventional 'mailing label' data. Instead, maybe you want to print some name badges or something like that. If I go to the address settings screen, I can set whatever tokens I want in the mailing label format field. If I have the mailing label format simply contain '{contact.display_name}', then mailing labels will be correctly produced, with each contact's display name listed. However, if I change the label format to '{contact.addressee}', then I get a completely blank PDF. It seems that certain tokens have to be present in the label format field in order for the contact's data to be correctly pulled in, if those tokens are not present, then no tokens work because there is no data for any contacts. I have tested this with a production 4.3.0 install, as well as on the demo 4.3 site at http://drupal.demo.civicrm.org. Both have this problem.

I have also defined some custom tokens in a module, and if I set the mailing label format to contain just one of my custom tokens, I get the same results, a blank PDF file.

Unless I'm missing something, this looks like a bug. I can enter it into the tracker, if need be.

Best wishes,
-Ian

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Mailing Label Format issues
May 28, 2013, 08:19:33 am

addressee is specifically removed from the list of tokens:

check

http://issues.civicrm.org/jira/browse/CRM-6025
CRM/Contact/Form/Task/Label.php (search for 6025)

i'm not sure why, but would be good if u can dig a bit deeper and figure out what/why etc

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Mailing Label Format issues

This forum was archived on 2017-11-26.