Skip to content
  1. Extras
  2. BannerY


Component to manage the banners on the site.

Create a banner ad space, then bind to one another, and output on the site in the right places.

It is also able to consider clicks and keep their statistics.


&positionsComma separated list of ads positions.
&showLogIf true, snippet will add detailed log of query for managers.
&fastModeFast chunks processing. If true, MODX parser will not be used and unprocessed tags will be cut.
&limitIf set to non-zero, will only show X number of items.
&offsetAn offset of items returned by the criteria to skip.
&sortbyReturn results in specified order. It can be any field of byAd, "RAND()" or "idx" - index of ad in position.
&sortdirOrder of the results
&outputSeparatorAn optional string to separate each tpl instance.
&where МассивA JSON-style expression of criteria to build any additional where clauses from.
&showInactiveShow an inactive items.
&tplName of a chunk serving as a item template. If not provided, properties are dumped to output for each item.
&tplFirstName of a chunk serving as item template for the first item.
&tplLastName of a chunk serving as item template for the last item.
&tplOddName of a chunk serving as item template for items with an odd idx value (see idx property).
&tplWrapperName of a chunk serving as a wrapper template for the output. This does not work with toSeparatePlaceholders.
&wrapIfEmptyIf true, will output the wrapper specified in &tplWrapper even if the output is empty.
&toPlaceholderIf set, will assign the result to this placeholder instead of outputting it directly.
&toSeparatePlaceholdersIf set, will assign EACH result to a separate placeholder named by this param suffixed with a sequential number (starting from 0).


Before use it is necessary to create a banner and a position previously. See in section Interface

[[!BannerY? &position=`2`]]