Skip to content

Latest commit

 

History

History
49 lines (26 loc) · 1.07 KB

File metadata and controls

49 lines (26 loc) · 1.07 KB

TicketModel

Whenever you're dealing with a ticket in your template, you're actually working with a TicketModel object.

Simple Output

Outputting a TicketModel object without attaching a property or method will return the ticket's title.

<h1>{{ ticket }}</h1>

Properties

author

Returns a UserModel object representing the ticket's author.

authorId

The ticket's author ID.

cpEditUrl

Returns the URL to the ticket's edit page within the control panel.

dateCreated

A DateTime object of the date the ticket was created.

dateUpdated

A DateTime object of the date the ticket was last updated.

id

The ticket's ID.

messages

Returns a MessageModel object representing the ticket's messages.

ticketStatus

Returns a TicketStatusModel object representing the ticket's status.

ticketStatusId

The ticket's status ID.