Skip to content
  1. Extras
  2. Tickets
  3. Snippets
  4. TicketMeta

TicketMeta

Ticket meta on the page: author, dates, views, voting, favorites. Since 1.4.0 also works with regular MODX resources.

Parameters

NameDefaultDescription
&tpltpl.Tickets.metaMeta block chunk
&tplFiletpl.Tickets.meta.fileFile row in the list
&getUser1Load author profile
&getFiles1Output uploaded files
&unusedFiles1Only files not linked in content
&threadComment thread name for counters; default resource-{id}
&idcurrent resourceResource ID when not on the ticket page

getSection is not in snippet properties; the section is loaded in code when class is Ticket.

Examples

Default

fenom
{'!TicketMeta' | snippet}
modx
[[!TicketMeta]]

Placeholders without a chunk

fenom
{'!TicketMeta' | snippet : ['tpl' => '']}
modx
[[!TicketMeta? &tpl=``]]

Meta for another resource

fenom
{'!TicketMeta' | snippet : ['id' => 42]}
modx
[[!TicketMeta? &id=`42`]]