• MODX.com

    101 downloads

BannerRevised

BannerRevised is an extra by matdave, first released on 2024-01-23.

Package Description

Mostly fixes

Usage/Installation Instructions

## **Installation** Install via Package Management. ## **Usage** Banners can be set up in the manager under the `Components > BannerRevised` menu. ### **Banner Positions** Banner Positions are used to group banners together. You can create as many positions as you want. Each position can be placed in a different place on your website. ### **Banners** Banners are the actual ads that are displayed on your website. Each banner can be assigned to one or more positions. You can also set the start and end date for each banner. If you leave the end date empty, the banner will be displayed indefinitely. Banners can be of the following types: * HTML - HTML code * Image - Image with link ### **Snippet** To display banners on your website, you can use the `[[BannerRevised]]` snippet. The snippet has the following properties: * `position` - The position of the banner. If you leave this empty, all banners will be displayed. * `tpl` - The chunk that will be used to display the banner. The default chunk is `brevAdTpl`. This is just for demonstration and we recommend you to create your own chunk. * `limit` - The maximum number of banners that will be displayed. The default value is 5. * `offset` - The number of banners that will be skipped. The default value is 0. * `sortby` - The field that will be used to sort the banners. The default value is `RAND()`. * `sortdir` - The direction of the sorting. The default value is `ASC`. * `where` - The additional condition that will be used to filter the banners. The default value is empty. This must be formatted as a JSON string. * `showInactive` - If set to `1`, inactive banners will also be displayed. The default value is `0`. * `toPlaceholder` - If you set this property, the snippet will not output anything, but will set the result to the placeholder specified in this value. * `toSeparatePlaceholders` - If set, each banner will be set to a separate placeholder named by this parameter with a number appended to it (starting from 0). #### **Additional TPL options** * `tplFirst` - The chunk that will be used to display the first banner. * `tplLast` - The chunk that will be used to display the last banner. * `tplOdd` - The chunk that will be used to display odd banners. * `tplImage`, `tplImageFirst`, `tplImageLast`, `tplImageOdd` - The chunk(s) that will be used to display image banners. * `tplHtml`, `tplHtmlFirst`, `tplHtmlLast`, `tplHtmlOdd` - The chunk(s) that will be used to display HTML banners. * `tplWrapper` - The chunk that will be used to wrap the banners. * `wrapIfEmpty` - If set to `1`, the wrapper chunk will be displayed even if there are no banners to display. The default value is `0`.

Details

Developer(s)
matdave
Released
2024-01-23
First seen
2024-01-23
License
GPLv2
Supported databases
Minimum MODX Requirement
2.6

BannerRevised Releases

Vendor Signature Released on
MODX.com 1.1.5-pl 2024-01-23 (9 months ago)
MODX.com 1.1.4-pl 2024-01-17 (10 months ago)
MODX.com 1.1.3-pl 2023-09-13 (1 year ago)
MODX.com 1.1.2-pl 2023-09-13 (1 year ago)
MODX.com 1.1.1-pl 2023-09-12 (1 year ago)
MODX.com 1.1.0-pl 2023-09-11 (1 year ago)
MODX.com 1.0.0-pl 2023-09-06 (1 year ago)