Categories

.externalcontentGadgetRss()

Categories: UI

.externalcontentGadgetRss( [ options ] )

Subclass: de_epages

Inherit: (Subclass: de_epages) .widget()

Plugin: de_epages.externalcontent.gadget.rss

Description: Create a RSS feed.

  • .externalcontentGadgetRss( [ options ] )

    version added: 6.15.0

    options   A map of additional options to pass to the method.

The Widget inserts a RSS feed into the target element on which the widget is executed on.

  • The Widget is executed on a pageelement and is called with passing the chosen services. In this example an RSS feed from heise.de is implemented. 10 complete articles (including images, no snippets) are shown in standard layout.

    Code:
    
    jQuery.ready({
    		plugin: [ 'de_epages.externalcontent.gadget.rss' ],
    		DOM:    true
    	}, function($){
    		var widget = de_epages('<div>').externalcontentGadgetRss({
    			url: "http://www.heise.de/newsticker/heise-atom.xml",
    			numberOfEntrie: 10,
    			onlyHeadlines: false,
    			onlySnippets: false,
    			removeImages: false,
    			layout: "standard"
    		});
    });
    
    
  • url

    version added: 6.15.0

    A reference to the target page to receive the RSS feed.

    Default: empty

  • numberOfEntrie

    version added: 6.15.0

    Defines the number of shown articles of the RSS feed.

    Default: null

  • onlyHeadlines

    version added: 6.15.0

    Specifies whether to display only headlines/titles of entries.

    Default: false

  • onlySnippets

    version added: 6.15.0

    Specifies whether to display only a snippet version (less than 120 characters) of an entry.

    Default: false

  • removeImages

    version added: 6.15.0

    Specifies whether to remove *img* tags from entry's content.

    Default: false

  • layout

    version added: 6.15.0

    Defines how to display the total number of likes. Values: 'box', 'default'

    Default: default

  • destroy

    • .externatcontentGadgetRss('destroy')

      version added: 6.15.0

    This method removes the container on which the RSS feed has been appended to.