Issue Details (XML | Word | Printable)

Key: MDL-9735
Type: Improvement Improvement
Status: Open Open
Priority: Minor Minor
Assignee: Martin Dougiamas
Reporter: Neil Langevin
Votes: 5
Watchers: 3
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

Categorize RSS feeds

Created: 08/May/07 02:59 AM   Updated: 04/Apr/08 06:01 PM
Return to search
Component/s: RSS
Affects Version/s: 1.8
Fix Version/s: None

Database: Any
Participants: James Ballard, Martin Dougiamas and Neil Langevin
Security Level: None
Affected Branches: MOODLE_18_STABLE


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

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
James Ballard added a comment - 04/Apr/08 05:57 PM
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'))


James Ballard added a comment - 04/Apr/08 06:01 PM
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.