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

getTicketsSections

Outputs a list of ticket sections. The snippet must be called uncached.

Parameters

NameDefaultDescription
&depth0Search depth from each parent.
&fastMode0If enabled, only raw DB values are passed to the result chunk. All unprocessed MODX tags (filters, snippet calls, etc.) are stripped.
&includeContent0Include the "content" field of resources.
&includeTVsComma-separated list of TV names to include. E.g. "action,time" gives placeholders [[+action]] and [[+time]].
&limit10Maximum number of results.
&offset0Number of results to skip.
&outputSeparatorOptional string to separate results.
&parentsComma-separated list of parent IDs. By default the search is limited to the current parent. Use 0 for no limit.
&resourcesComma-separated list of resource IDs to include. Prefix an ID with a minus sign to exclude it.
&showDeleted0Include deleted resources.
&showHidden0Include resources hidden in menu.
&showLog0Show extra snippet debug info. Only for users logged in to the "mgr" context.
&showUnpublished0Include unpublished resources.
&sortbyviewsSort field.
&sortdirDESCSort direction.
&toPlaceholderIf set, the snippet stores all data in a placeholder with this name instead of outputting.
&tpltpl.Tickets.sections.rowChunk for each result row.
&tvPrefixPrefix for TV placeholders, e.g. "tv.". Empty by default.
&whereJSON-encoded string with extra conditions.

Подсказка

The list can be extended with the common parameters of pdoTools, since Tickets is built on that library.

Examples

Simple call.

modx
[[!getTicketsSections?]]