Designer - ShortcodesDesigner - Shortcodes

The Shortcodes feature in IDpack allows you to dynamically insert data from database fields directly into your badge design. Shortcodes are enclosed in square brackets, for example [firstname], and are added using the Text Tool in Designer. When a badge is printed, shortcodes automatically retrieve and display information from the project data, ensuring badges remain accurate and up to date.

If a required field is not available in the standard library, you can request a custom field.

How to Use Shortcodes

Shortcodes correspond to database field names and are always enclosed in square brackets. For example, [firstname] inserts the cardholder first name, while [level] can display a security level or access classification. This approach allows you to build data driven badge designs without writing any code.

Examples

  • Without HTML
    Hello [firstname], welcome to this event. Your security level is [level]. Enjoy your stay.
  • With HTML
    Hello <strong>[firstname]</strong>, welcome to this event. Your security level is [level]. Enjoy your stay.

Custom Shortcodes

IDpack also provides additional built in shortcodes that offer extended flexibility:

  • [id] or [id_number] The record identification number. Example 5678
  • [organization_name] The name of the organization managing the account. Example ACME Example Inc.
  • [firstlast_name] Combines the first name and last name into a single shortcodes. Example Steve Smith
  • [colorcodename] Displays the text label of the Color Code assigned to the record. Example Administrator
  • 2026 Displays the current year. Example 2026