Mecha CMS

Add extra functionality to the core engine.

Feed

Table of Content

Add RSS and JSON feeds format features.

Usage 

  • Normal view → /path/to/file
  • RSS view → /path/to/file/feed.rss
  • JSON view → /path/to/file/feed.json
  • Sitemap view → /sitemap.xml

Parameter 

Supported URL parameters to be used if you want third party sites fetch your data:

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

Example API usage:

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

Dependency 

Extension