Skip to end of metadata
Go to start of metadata

As of 3.2, this feature has been implemented and is part of civicrm.

Name Badges

From the list of participants, being able to print name badges (a new action). This is similar to the labels on the contacts but:

  • it has more tokens based on the event (eg. the name of the event, the date) or on the participant (eg. the role "speaker"/"volunteer")
  • you can per event customise the background (an image), so the civicon might have a different logo than the europe developer training
  • you can customise it further per role and event (eg the volunteers have a red border, the speakers a blue one). can either be a specific image or a hook to alter the image/add an extra element on the badge

It should also be possible to generate a single name badge from the participant (so you can print an extra badge on the spot for the late registered)
The export+merging using word is too time consuming, it needs to be generated directly, like the labels.

Chevalet

This is the triangle you put on the table in front of the participant. This is like a name badge, but you need to be able to print twice the name (on both side of the triangle), and one has to be upside down (so once folded, they are both properly oriented).

Implementation details

You create config page 'labels format' like for the custom search (set a name and a class). + the export mapping, ie. what fields needs to be assigned to the label generator class

Each of these classes extends the base label class, with method(s) to assign the data, and format them the way they want and generate the pdf or whatever they want. I do this part, and give back an example or two of labels, so people know how to generate their own from these example.

You create a new "task" on the participant "generate namebadge". We will reuse the existing search on participants+export.

  • you choose a namebadge label, that defines what class is doing to generate the pdf (and do the layout) and what "export" mapping to use (ie. what fields to provide to the pdf generating class)

The mapping is going to contain at least the event id but probably also:

  • event id
  • display name
  • role
  • status

and possibly more, eg. the organization name, the country....

After selecting the action "generate namebadge", the user choose one the the label (select), it calls the associated class, and the class does the formatting and whatever you need. The class is responsible to use the event id (one of the column of list of participants) and fetch the details of the event (name, date...)

From the participant detail (on the event tab or from the list of participant, you have a new action "generate name badge" that creates a list of one participant and goes through the normal process (choose the label format and calls the pdf class that generates the pdf)

Detail: we need to have a pre-configured label (TTTP provides the pdf class), and therefore a default export mapping

Labels
  • None

Creative Commons License
Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-Share Alike 3.0 United States Licence.