bdTargets
Last updated Apr 12th, 2019 | Page history | Improve this page | Report an issue
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$287 per month—let's make that $500!
Learn morebdTargets is a simple snippet to output your target groups.
Snippet Properties¶
Property Name | Description | Default Value |
---|---|---|
limit | Limit the amount of results. | 0 |
offset | Offset to start at. | 0 |
sortby | Field to sort on. Can be sortorder, id or name. | sortorder |
sortdir | Direction to sort on. Either asc or desc. | asc |
rowSeparator | String to use between rowTpl items. | \n |
tplOuter | Chunkname to wrap the complete result set in. | |
Default: |
Placeholders to use:
- wrapper
tplRow
- Chunk name to wrap individual target groups in. Default:
Placeholders to use:
- id
- name
- sortorder
Examples¶
Minimum call:
Result (depending on your target group data):
Display as Select box¶
Snippet call:
bdl.target.row:
bdl.target.outer:
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$287 per month—let's make that $500!
Learn more