Skip to main content

How to Display a Specific Accreditation, Shift, or Time Slot in WeezCrew Documents

In your communication emails and custom documents (badges, vouchers, call sheets), you can display a single accreditation, a single shift, or a specific time slot instead of listing the entire schedule or full set of access passes. This is particularly useful for printing a targeted label on a badge ("Parking: Friday to Sunday"), building an arrival-day call sheet, or preparing a welcome email highlighting a volunteer's first shift.


1. The 4 Available Dynamic Variable Lists

When a member holds an accreditation (such as Parking access on Friday and Saturday), their data is structured across two levels: the overarching accreditation or shift on one hand, and each individual time slot on the other. In this example, the member has one entry in {user.accreditations} and two entries in {user.accreditationsSlots}.

Root Variable

Targeted Content

Usage Example

{user.accreditations.…}

One entry per overarching accreditation

Check access to Parking or the VIP Area.

{user.accreditationsSlots.…}

One entry per accreditation time slot

Retrieve a specific valid access day for an accreditation.

{user.positions.…}

One entry per shift

Display the title or category of an assigned shift.

{user.assignments.…}

One entry per shift assignment (work slot)

Display exact hours for a specific work shift.

Reminder: Used alone without any sub-property, the {user.assignments} variable always generates the direct URL link to the member's online assignment sheet.


2. How to Target a Specific Entry

Two methods are available to select an exact item:

Method A: Target by Number (Chronological Order)

Specify the entry index starting at 1:

  • {user.accreditations.1.name}: Returns the name of the first accreditation.

  • {user.assignments.2.range}: Returns the time slot of the second shift assignment.

Indexing Rules:

  • Time slots are sorted chronologically by date.

  • Accreditation time slots without a fixed date are placed last.

  • If the specified number exceeds the member's actual number of entries, the variable stays blank.

Method B: Target by Acronym (Accreditations and Shifts)

To target an access pass or role regardless of its chronological position, use its configured acronym.

Mandatory Formatting: The acronym must be written in lowercase, with accents removed, and every character other than a letter or digit replaced with an underscore (_).

Configured Acronym

Corresponding Variable

PKG

{user.accreditations.pkg.name}

VIP-Presse

{user.accreditations.vip_presse.name}

É1

{user.positions.e1.name}

Key Rules to Keep in Mind:

  • When multiple entries share an identical acronym, only the first matching entry is used.

  • Acronyms composed exclusively of digits (e.g., "2026") cannot be used; rely on numeric position indexing instead.

  • If the member does not hold the requested accreditation or shift, the variable stays blank.


3. Isolate the First and Last Time Slot

To mention a date span without listing every intermediate day, append the firstSlot or lastSlot suffixes:

  • Within a specific accreditation or shift:

    • Date of the first parking slot: {user.accreditations.pkg.firstSlot.date}

    • Time window of the last slot of the first shift: {user.positions.1.lastSlot.range}

  • Across the member's entire profile (all shifts or accreditations combined):

    • Accreditations: {user.firstAccreditationSlot.…} and {user.lastAccreditationSlot.…} (the last slot corresponds to the latest dated slot).

    • Shifts: {user.firstAssignment.…} and {user.lastAssignment.…}.


4. Available Information and Attributes

Each variable can be completed with any of the following attributes to render the desired information:

Attribute

Description & Example Value

name, acronym

Full name and acronym.

category.name

Name of the parent category.

date, dateLong

Date in the organization's format or written out in full (e.g., Friday, June 21).

range

Shift time slot written out in full (e.g., Friday, June 21 from 08:00 to 12:00).

startDatetime, endDatetime

Shift start and end timestamps.

slot.name

Name of the specific time slot.

slot.startTime, slot.endTime

Start and end clock times of the slot.

slot.durationHours, slot.durationMinutes

Calculated slot duration in hours or minutes.

address, description, color

Address, description, and color code.

Note: Unlike shift assignments, accreditation time slots store only a date without start/end clock times.


5. Document Integration Examples

  • Text for a badge or pass:

    Parking: from {user.accreditations.pkg.firstSlot.dateLong} to {user.accreditations.pkg.lastSlot.dateLong}

  • First welcome shift on a document:

    First shift: {user.firstAssignment.name}, {user.firstAssignment.range}


6. Additional Recent Improvements

  • Delegation Leaders: The {delegation.leaders} variable now remains blank instead of displaying the technical [object Object] string when no leader is defined.

  • Chronological Sorting: The {assignmentsDays} tag automatically orders days chronologically inside custom documents.

  • Email Campaigns: The HTML body of a campaign now natively supports {formLink}, {delegationsSpaceLink}, as well as pre-assignment and preference variables.

Did this answer your question?