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

getTicketsSections

Outputs a list of ticket sections.

Call uncached.

Parameters

NameDefaultDescription
&depth0Search depth from each parent
&fastMode0DB values only; strips unprocessed MODX tags
&includeContent0Include resource content
&includeTVsComma-separated TV names
&limit10Result limit
&offset0Skip results from the start
&outputSeparatorSeparator between rows
&parentsParent IDs; 0 removes parent limit
&resourcesResource IDs; prefix - to exclude
&showDeleted0Include deleted resources
&showHidden0Include resources hidden in menu
&showLog0Debug log for mgr session
&showUnpublished0Include unpublished resources
&sortbyviewsSort field
&sortdirDESCSort direction
&toPlaceholderStore output in a placeholder
&tpltpl.Tickets.sections.rowRow chunk
&tvPrefixTV placeholder prefix
&whereExtra JSON conditions

Подсказка

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

Examples

Simple call

fenom
{'!getTicketsSections' | snippet}
modx
[[!getTicketsSections?]]

Sort by views

fenom
{'!getTicketsSections' | snippet : [
  'parents' => 0,
  'limit' => 20,
  'sortby' => 'views',
  'sortdir' => 'DESC',
]}
modx
[[!getTicketsSections?
  &parents=`0`
  &limit=`20`
  &sortby=`views`
  &sortdir=`DESC`
]]