Skip to content
This repository has been archived by the owner on Jul 6, 2020. It is now read-only.

Explore Feed Section

Bernhard Posselt edited this page Jan 23, 2016 · 5 revisions

The feeds are stored in a JSON file in the explore folder and are localized based on their filename, meaning: feeds.en.json will only be shown for English localized ownCloud installations, feeds.de.json only for German installations. If no other localization exists, the feeds.en.json will be taken.

You can also provide your own explore service

Format

The file has the following format:

{
 "Tech": [  // category
  {
   "title": "ownCloud Planet",
   "url": "http://owncloud.org/news/",  // link to the page so the user can view it
   "feed": "http://owncloud.org/feed/",  // link to the exact feed location so we can test if the user uses it already
   "description": "ownCloud Planet is a feed aggregator",
   "votes": 3121,  // the higher the vote count, the further up the entry will appear
   "favicon": "http://owncloud.org/wp-content/themes/owncloudorgnew/assets/img/common/favicon.png",  // optional
  }, // etc
 ]
}

To ease the pain of constructing the JSON object, you can use a small script to automatically create it:

php -f bin/tools/generate_explore.php https://path.com/to/feed.rss

By passing a second parameter you can set the vote count which determines the sorting on the explore page:

php -f bin/tools/generate_explore.php https://path.com/to/feed.rss 1000

You can paste the output directly into the appropriate json file but you may need to add additional categories and commas

Clone this wiki locally