Mecha CMS

Add extra functionality to the core engine.

Feed

Table of Contents
  1. Usage 
  2. Parameter 

Add RSS and JSON feed features.

Download Version 2.4.2 Download Development Version

Something looks broken? We accept bounties to fix them faster.

Usage 

  • Normal view → ./path/to/page
  • JSON view → ./path/to/page/feed.json
  • RSS view → ./path/to/page/feed.xml

Parameter 

Some URL parameters are available to manipulate the feed results, so that you can allow third party applications to fetch your data:

  • chunk → Determine how many pages to show per request. Default is 25.
  • fn → JavaScript callback function name that bounds to the window object.
  • i → Current page offset. Default is 1.
  • sort → Default is [-1,"time"] to sort pages descending by the time data.

Example API usage:

<script>
function render(json) {
    console.log(json);
}
</script>
<script src="https://mecha-cms.com/article/feed.json?chunk=5&fn=render"></script>