Donor Wall
Lists of donors in accordian style by defined breakpoints.
Used On Pages
Support -> Our Supporters
Usage
collectionControl(Selector, Collection Slug, Display Type, Attributes)
Parameters:
Parameter | Description |
Selector | Required. jQuery selector identification where the resulting html code will be generated. Note that the selector must be unique on the page. |
Collection Slug | No defined collection is needed, leave blank. |
Display Type | Required. Identifies the display type requested. For donors must be "donorWall". These are case sensitive parameters. |
Attributes | Optional. Identifies parameters to override default values. The parameters are passed in a object array of key/value pairs. Each display type has different default values as described below. |
Attributes:
All attributes are optional, the defaults are defined.
Attribute | Description | Default |
Collapasble |
| True |
Collapsed | Collapsable must be set to true, otherwise this paramter is ignored.
| False |
openfirst | Determins if the first accordian group is initially expanded or not
| False |
title | The title that will be displayed if collapsable | title |
breakpoints | This is an array of integer values which defines the breakpoints and minimum value to qualify. | breakpoints: [ 1,1000,5000, 10000, 25000, 50000, 100000, 250000, 500000, 1000000]. |
Example code block for control
<script>
<script>
$( document ).ready(function() {
collectionControl(
'#donorWall',
'',
'donorwall',
{
collapsable: false,
collapsed: true,
title: "This is the title",
breakpoints:
[1,1000,5000, 10000, 25000,
50000, 100000, 250000, 500000, 1000000]
}
);
});
</script>
<div id="donorWall"></div>
Reference Data
reference-data blog: Donor Wall (code block)
reference-data blog: Donor Wall (gallery block)
Code Block is a standard CSV file, including the header row. All fields are separated by commas. Blank lines, and lines where the first field is blank are ignored. Columns are Min, Name, Total donors, Endowment, Recent Year. Rows where the “Min” value is a zero are considered notes and will be placed in the footnote section.
CSV Donor File:
Column | Description |
Min | The total donation dollar amount, or the breakpoint amount |
Name | The donor full name as it should show |
Total donors | Number of donors in this grouping, normally only used for "Anonymous" |
Endowment | "Yes", "No" or null. Yes indicates that this donation is a endowment. |
Recent Year | Not used at the moment |
NOTE about Anonymous
Anonymous donors are identified by setting the name to “Anonymous”. All Anonymous donors within a group will be totaled up and presented as a single donor entry with the total number of donors indicated in parentheses.
… Anonymous (3) …
Example Screenshot