Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
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.
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'))