Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

We.js RSS plugin

RSS plugin to add suport to format response in RSS compatible format, avaible for lists

Configuration

Add the rss configuration for every model in you project config/local.js file

File: config/local.js

module.exports = {
  // - others configs
  rss: {
    models: {
      article: { // model name
        title: 'My posts!', // title of your xml file
        description: 'my newest blog posts', // description for your xml file
        item: {
          title: 'title', // model attribute to get title
          description: 'teaser'  // model attribute to get description
        }
      }
    }
  }
  // - others configs
}

Usage

After configure access your list with responseType=rss query param or .rss extension like:

http://localhost:4000/event.rss

Links

License

MIT

About

RSS plugin to add suport for RSS response type in lists (find action)

Resources

Packages

No packages published