Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The rss:version() function takes in a returns the version of the rss feed.  The rss:version() function takes in the following arguments:

  • Dataset or Datasource—An rss dataset or datasource

...

The following is an example of rss:version

...

items

the rss:items() function takes in a dataset or datasource and returns an array of all the RSS items in the feed. The rss:items function takes in the following arguments:

  • Dataset or Datasource—An rss dataset or datasource

The following is an example of rss:items()

...

first

the rss:first() function takes in a dataset or datasource and returns the first item from the channel feed. The rss:first function takes in the following arguments:

  • Dataset or Datasource—An rss dataset or datasource

The following is an example of rss:items()

...

last

the rss:last() function takes in a dataset or datasource and returns the last item from the channel feed.  The rss:last function takes in the following arguments:

  • Dataset or Datasource—An rss dataset or datasource

The following is an example of rss:last()

...

The rss:index() function returns the nth item from the feed.

List of arguments

 The rss:index function takes in the following arguments:

  • Dataset or Datasource—An rss dataset or datasource
  • an integer n.n—The item number desired

The following is an example of rss:index()

...

The rss:random() function returns a random item from the feed. The rss:random function takes in the following arguments:

  • Dataset or Datasource—An rss dataset or datasource 

The following is an example of rss:random()

...

The rss:channel() function returns values from the various channel elements.

List of arguments

The rss:channel function takes in the following arguments:

  • Dataset or Datasource—An rss dataset or datasource
  • string with the name—The name of the desired element, ie: "title"

The following is an example of rss:indexchannel()

Code Block
themeConfluence
languagejavascript
pre {
  rssChannelTitle = rss:channel(rss_data_set, "title");
}

Item Functions

item

The rss:item() function returns the desired rss item

  • Dataset or Datasource—An rss dataset or datasource
  • name---the name of the desired element

The following is an example of rss:item()

Code Block
themeConfluence
languagejavascript
pre {
  rssTitle = rss:item(rss_data_set, "title");
}

 

 

 

 

 

Anchor
_GoBack
_GoBack