Configuring additional data formats
In Content Manager Explorer, the Site Configuration Component can have a named property dataFormats, set to a comma-separated list of the additional data format(s) in which you want to serve your content.
Procedure
Results
The site serves up content in the format(s) you specified. To retrieve content in a specific format, do one of the following:
- Append the query string
format=FORMAT, where FORMAT is the name of the format, to the end of your URL. - Use the accept headers in the request to determine the format. For example, include an accept header
application/rss+xmlorapplication/atom+xmlto get RSS or ATOM format output, respectively, or, for JSON, add the following JQuery code in your browser console to produce in a message box containing the JSON version of the page:$.getJSON("http://www.example.com/articles/news", function(data){alert(JSON.stringify(data));})