Tamina allows to display the current total amount per e.g. campaign or purpose. Filter criteria can be defined via Javascript.
Tamina contains and enables:
-
Donation barometer
-
Searching/filtering customizable
-
Responsive design
-
Multi language support
A code example can be found here:
<script type="text/javascript">
window.rnwWidget = window.rnwWidget || {};
window.rnwWidget.configureWidget = function(options) {
//Target level in CHF
options.barometerTargetLevel = 2500;
//Search sub query, please do not use whitespace or special characters or camelCase in key and value
options.searchQuery = [{'stored_campaigner_name' : 'foobar'}];
options.widget.on(window.rnwWidget.constants.events.SEARCH_RESULT_LOADED, function (e) {
//Current level
alert("current level " + e.level);
//Add CHF 100.- to current level, e.g. to add offline donations
e.widget.setLevel(100 + e.level);
});
};
</script>
Please also select the a container and add the following snippet to the desired location:
<div class="dds-widget-container"></div>
Known problem
If you have problems to filter for a parameter with a specific value try to filter with the .raw parameter. Each field in our E-Payment system has this .raw parameter accessed via our search API.
Example: If the value has a '-' (dash) in it you should use the .raw parameter:
options.searchQuery = [{'stored_campaigner_name.raw' : 'foo-bar'}]
Comments
0 comments
Please sign in to leave a comment.