Moodle

Categorize RSS feeds

Details

  • Type: Improvement Improvement
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 1.8
  • Fix Version/s: None
  • Component/s: RSS
  • Labels:
    None
  • Database:
    Any
  • Affected Branches:
    MOODLE_18_STABLE

Description

Add a sorting/categorizing feature for RSS feeds. If a site has many RSS feeds the current unsorted view is cumbersome.

Activity

Hide
James Ballard added a comment -

Categories and the ability to choose an order would be fantastic.

You can change two lines to order everything by the entered title, to quickly allow some improved management - search by user defined titles.

In blocks/rss_client/config_instance.html (around line 81):

Change
if ($rssfeeds = get_records_select('block_rss_client', 'userid = '.$USER->id.' OR shared = 1')) {

to
if ($rssfeeds = get_records_select('block_rss_client', 'userid = '.$USER->id.' OR shared = 1', 'preferredtitle ASC')) {

And in lib/rsslib.php (around line 396):

Change
$feeds = get_records_select('block_rss_client', $select, sql_order_by_text('title'));

to
$feeds = get_records_select('block_rss_client', $select, sql_order_by_text('preferredtitle'))

Show
James Ballard added a comment - Categories and the ability to choose an order would be fantastic. You can change two lines to order everything by the entered title, to quickly allow some improved management - search by user defined titles. In blocks/rss_client/config_instance.html (around line 81): Change if ($rssfeeds = get_records_select('block_rss_client', 'userid = '.$USER->id.' OR shared = 1')) { to if ($rssfeeds = get_records_select('block_rss_client', 'userid = '.$USER->id.' OR shared = 1', 'preferredtitle ASC')) { And in lib/rsslib.php (around line 396): Change $feeds = get_records_select('block_rss_client', $select, sql_order_by_text('title')); to $feeds = get_records_select('block_rss_client', $select, sql_order_by_text('preferredtitle'))
Hide
James Ballard added a comment -

The above of course requires that each feed has a custom title, as it doesn't take into account when the original feed title is used.

Show
James Ballard added a comment - The above of course requires that each feed has a custom title, as it doesn't take into account when the original feed title is used.

People

Vote (5)
Watch (3)

Dates

  • Created:
    Updated: