changeDotOrg
changedotorg
About
Seamlessly integrate your MODX site with Change.org's API. This snippet will retrieve and display almost any field from the Signatures, Reasons, Updates and Targets API resources.
Installation & usage
Install via Package Manager. Get a Change.org API key here: https://www.change.org/developers/api-key
Then enter your API key and Petition URL in the respective System Settings and you're ready to call the Snippet into your content or template, like this:
[[changeDotOrg]] » returns the signature count by default, and caches for 2 hours (you can change cache expires in System Settings)
[[changeDotOrg? &from=`reasons` &offset=`2` &limit=`3`]] » returns the 3rd - 5th most recent "Reasons" posted by signers.
[[changeDotOrg? &from=`reasons` &random=`1` &tpl=`reasonTpl`]] » returns one reason object randomly selected from the API response data, output via the Chunk.
3 default chunks are included. They should be duplicated and defined in the Snippet properties to customize the output.
Find out more here: http://www.sepiariver.ca/blog/modx-web/modx-and-the-change.org-api
At a glance
MODX 3 compatibility unknown. Based on our testing and community reports where available.
- Developer sepiariver
- Latest release October 25, 2013 (13 years ago)
- First seen in SiteDash October 25, 2013 (13 years ago)
- License GPLv2
- MODX support 2.2 – 100.0
| Changelog | |||
|---|---|---|---|
| MODX.com |
1.0.1-beta1 |
October 25, 2013
13 years ago |
|
|
<p>Initial content</p>
|
|||
|
No matching releases. |
|||