CiviCRM

Generate Name Badges

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Trivial Trivial
  • Resolution: Fixed/Completed
  • Affects Version/s: 3.2
  • Fix Version/s: 3.2
  • Component/s: CiviEvent
  • Labels:
    None

Description

As per.

http://wiki.civicrm.org/confluence/display/CRM/Name+Badge+for+CiviEvent

I have modified CRM/Utils/PDF/Label.php to add a new method:
function SetGenerator ($objectinstance, $methodname = 'generateLabel')

So you can override the default MultiCell by something more exotic, while keeping the logic around to format the pages and put each label at the right place in the page...

X+

Activity

Hide
Donald A. Lobo added a comment -

let me know if there is anything else i need to do to close this issue. We need to get this resolved before next wed please
Show
Donald A. Lobo added a comment - let me know if there is anything else i need to do to close this issue. We need to get this resolved before next wed please
Hide
xavier dutoit added a comment -
Hi,

Added the Tent. Bit of a struggle to write it upside down and the way I wanted it, but now looks ok.

Need one thing:
Print the label as an action from the participant (a single action on one participant instead of a batch mode). This is basically a shortcut of select as single and choose action label


And something I haven't found: where is the admin interface to create a new label format ?

On my side, I have a 3rd format with images (not comited yet).

I'd like to add this behaviour:
by default, use civicrm logo
check if there is a $dir/badge/background.png file and use it instead of civicrm logo
check if there is a $dir/badge/type.typeid.png file and use it instead of civicrm logo
check if there is a $dir/badge/event.eventid.png file and use it instead of civicrm logo
check if there is a $dir/badge.role.eventid.roleid.png file and use it instead of civicrm logo

Question: what if the $dir I should use (they are quite a few config fields to let you set directories, what is the right one to choose ?

X+

P.S. Can push tomorrow if you tell me what to use for $dir to put that



Show
xavier dutoit added a comment - Hi, Added the Tent. Bit of a struggle to write it upside down and the way I wanted it, but now looks ok. Need one thing: Print the label as an action from the participant (a single action on one participant instead of a batch mode). This is basically a shortcut of select as single and choose action label And something I haven't found: where is the admin interface to create a new label format ? On my side, I have a 3rd format with images (not comited yet). I'd like to add this behaviour: by default, use civicrm logo check if there is a $dir/badge/background.png file and use it instead of civicrm logo check if there is a $dir/badge/type.typeid.png file and use it instead of civicrm logo check if there is a $dir/badge/event.eventid.png file and use it instead of civicrm logo check if there is a $dir/badge.role.eventid.roleid.png file and use it instead of civicrm logo Question: what if the $dir I should use (they are quite a few config fields to let you set directories, what is the right one to choose ? X+ P.S. Can push tomorrow if you tell me what to use for $dir to put that
Hide
Donald A. Lobo added a comment -

added support to print an event name badge from the participant view

lets use the custom template dir for now to search for those images

Show
Donald A. Lobo added a comment - added support to print an event name badge from the participant view lets use the custom template dir for now to search for those images

People

Vote (0)
Watch (0)

Dates

  • Due:
    Created:
    Updated:
    Resolved: