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

subscribeAuthor

Outputs a form to subscribe to an author. Subscription is only available to logged-in users.

Parameters

NameDefaultDescription
&createdby0Required author user ID
&tpltpl.Tickets.author.subscribeForm chunk; @INLINE and @FILE allowed
&TicketsInit0Set 1 to load Tickets frontend scripts on custom pages

Examples

In a ticket list chunk

tpl.Tickets.list.row already has a createdby placeholder:

fenom
{'!subscribeAuthor' | snippet : ['createdby' => $createdby]}
modx
[[!subscribeAuthor? &createdby=`[[+createdby]]`]]

Author profile page

When author.id is available, enable Tickets frontend scripts:

fenom
{'!subscribeAuthor' | snippet : [
  'createdby' => $author.id,
  'TicketsInit' => 1,
]}
modx
[[!subscribeAuthor? &createdby=`[[+author.id]]` &TicketsInit=`1`]]