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. ID of the author (user) to subscribe to via the form.
&tpltpl.Tickets.author.subscribeChunk for the subscription form.
&TicketsInit0Set to "1" to load the subscription form and initialize Tickets frontend scripts on any page (e.g. author profile, user cabinet).

Examples

  • Call the snippet for each item in the ticket list, e.g. in chunk tpl.Tickets.list.row

    modx
    [[!subscribeAuthor? &createdby=`[[!+createdby]]`]]
  • Call the snippet on the author profile page (user ID in placeholder +author.id)

    modx
    [[!subscribeAuthor? &createdby=`[[!+author.id]]` &TicketsInit=`1`]]