Skip to content

Latest commit

 

History

History
33 lines (19 loc) · 755 Bytes

craftsupporttickets.md

File metadata and controls

33 lines (19 loc) · 755 Bytes

craft.support.tickets

How to get tickets

You can access your site's tickets from your templates via craft.support.tickets

{% set tickets = craft.support.tickets.all() %}

{% for ticket in tickets %}
  {{ ticket.id }} - {{ ticket.name }}
{% endfor %}

Parameters

craft.support.tickets supports the following parameters:

author

A User Model can be passed to get tickets for that user only.

authorId

Get tickets for that author only.

ticketStatus

A Ticket Status Model can be passed to get tickets for that ticket status only.

ticketStatusId

Get tickets for that ticket status only.