Skip to content
  1. Extras
  2. Tickets
  3. Chunks

Chunks

Install creates tpl.Tickets.* chunks. Copy to your theme and edit copies, not core originals.

Ticket forms

ChunkSnippet / param
tpl.Tickets.form.createTicketForm, &tplFormCreate
tpl.Tickets.form.updateTicketForm, &tplFormUpdate
tpl.Tickets.form.previewTicketForm, &tplPreview
tpl.Tickets.form.filesTicketForm, &tplFiles
tpl.Tickets.form.filefile row, &tplFile
tpl.Tickets.form.imageimage row, &tplImage

Comments

ChunkPurpose
tpl.Tickets.comment.wrapperthread wrapper; [[+total]], [[+comments]], subscribe
tpl.Tickets.comment.formlogged-in form
tpl.Tickets.comment.form.guestguest form
tpl.Tickets.comment.form.filesupload block
tpl.Tickets.comment.one.authsingle comment (logged in)
tpl.Tickets.comment.one.guestguest comment
tpl.Tickets.comment.one.deleteddeleted comment
tpl.Tickets.comment.loginlogin required
tpl.Tickets.comment.list.rowgetComments row
tpl.Tickets.comment.latestTicketLatest, action=comments

[[+total]] in the wrapper comes from TicketThread, not pdoFetch.

Lists and meta

ChunkSnippet
tpl.Tickets.list.rowgetTickets, getStars
tpl.Tickets.sections.rowgetTicketsSections
tpl.Tickets.sections.wrappersections wrapper (manual)
tpl.Tickets.ticket.latestTicketLatest, action=tickets
tpl.Tickets.metaTicketMeta
tpl.Tickets.meta.filefile in meta block

list.row placeholders include comments_anchor (#first_unread or #comments).

Email

ChunkWhen
tpl.Tickets.ticket.email.bccnew ticket, admin BCC
tpl.Tickets.ticket.email.subscriptionnew ticket, section subscriber
tpl.Tickets.comment.email.ownercomment, ticket author
tpl.Tickets.comment.email.replyreply to comment
tpl.Tickets.comment.email.subscriptionthread subscriber
tpl.Tickets.comment.email.bccadmin BCC
tpl.Tickets.comment.email.unpublishedunpublished comment
tpl.Tickets.author.email.subscriptionauthor subscription

Snippet params &tplCommentEmail* and &tplTicketEmail* override these.

Author subscribe

ChunkSnippet
tpl.Tickets.author.subscribesubscribeAuthor

&tpl supports @INLINE and @FILE (since 1.11.2).

Nested chunks

List/meta chunks use <!--tickets_* ... --> conditional subchunks (tickets_can_vote, tickets_subscribed, etc.). Prefix is set in code (tickets_).