• MODX.com

    1,136 downloads

changeDotOrg

changeDotOrg is an extra by sepiariver, first released on 2013-10-25.

Package Description

Initial content. Added instructions to snippet comments.

Usage/Installation Instructions

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

Details

Developer(s)
sepiariver
Released
2013-10-25
First seen
2013-10-25
License
GPLv2
Supported databases
Minimum MODX Requirement
2.2

changeDotOrg Releases

Vendor Signature Released on
MODX.com 1.0.1-beta1 2013-10-25 (11 years ago)