SAPO::Widgets.Blogs->printNews

This method will render a box with BlogItems based on a JSON object converted from an RSS feed

Syntax

var blogs = new SAPO.Widget.Blogs();
blogs.printNews(Posts);
blogs.printNews(Posts,{showsourceblog: false});

Input Parameters

  • (object) feed : JSON object coming from  http://services.sapo.pt/Blogs/JSON?q=KEYWORD&jsonTag=Posts
  • (object) options : Method options
    • (string) boxclass : Optional external CSS class definition for the widget. If not supplied, default CSS is applied.
    • (int) maxphotos : Optional maximum number of displayed photos (default is 10)
    • (bool) showsourceblog : Optional. Show a reference to the source Blog.
    • (string) divid : Optional placeholder id. If not specified, will rendered inline with the method call.

Compatibility

All browsersYes

Depends

Sample

 http://js.sapo.pt/SAPO/Widget/Blogs/sample/blogs.html

Other methods from this Class

Error: Failed to load processor ListTagged
No macro or processor named 'ListTagged' found


Community feedback

Error: Failed to load processor AddComment
No macro or processor named 'AddComment' found