Is there a way to post news from a course on the front page of moodle?
This is behind a log in on a paid course and ideally I would lke to have the titles show up somewhere on the front page and then when users click on them they will have to create an account and log in kind of like what this forum does.
The url of the forum looks like this:
https://moodle.com/mod/forum/view.php?id=1
Re: Is there a way to post news from a course on the front page of moodle?
Hi Ian - Yes, that is possible.
Go to Site administration -> Advanced features. Check the box next to Enable RSS feeds
Go to Site administration -> Plugins -> Activity modules -> Forum. Enable RSS feeds: Yes
Go to the course forum for which you want to set up an RSS feed. Enter the settings of the forum. Under RSS, enable the RSS feed and select the number of RSS articles to show.
On the forum page, click More -> RSS feed of discussions. (On Moodle 3.x, this option can be found in the Administration block.) An XML page appears. Copy the URL of this page from the address bar.
Go to Site administration -> Plugins -> Blocks -> Remote RSS feeds. Click Add/edit feeds -> Add a new feed. Paste the URL you copied earlier into the Feed URL field. Enter a custom title if you would like. Save changes.
Go to the Home page of the site and turn editing on. Click Add a block -> Remote RSS feeds. Click the gear icon of the block -> Configure Remote news feeds block. For Choose the feeds..., select the RSS feed you have just created. Change any of the other settings as you like. Save changes.
The RSS feed from the forum should now appear on the site homepage for users who are not logged in.
Re: Is there a way to post news from a course on the front page of moodle?
I am on the 3rd step and don't see an RSS setting for the forum???
UPDATE: I found another setting to enable rss in forums and now I see it!

Re: Is there a way to post news from a course on the front page of moodle?
Re: Is there a way to post news from a course on the front page of moodle?
We use the same method to fetching the RSS feed data from Moodle main fourm. It was works perfectly previously, just today, it stop work any more.
Compared cron task log, yesterday
Execute scheduled task: Refresh RSS feeds task (block_rss_client\task\refreshfeeds)
... started 21:15:01. Current memory use 27.7 MB.
DOMAINNAME/rss/file.php/16/b1104cc0fd25a2d12bb729456fe2b324/mod_forum/1/rss.xml ok
DOMAINNAME//id/15839069/device/rss/rss.html ok
DOMAINNAME/rss/file.php/272975/3112224e54ec53f871b2c03a220670ed/mod_forum/3583/rss.xml ok
DOMAINNAME/rss/file.php/375568/3112224e54ec53f871b2c03a220670ed/mod_forum/5604/rss.xml ok
DOMAINNAME/rss/file.php/392966/3112224e54ec53f871b2c03a220670ed/mod_forum/5936/rss.xml ok
5 feeds refreshed (took 0.604535 seconds)
... used 1 dbqueries
... used 0.61076307296753 seconds
Scheduled task complete: Refresh RSS feeds task (block_rss_client\task\refreshfeeds)
Todays:
Execute scheduled task: Refresh RSS feeds task (block_rss_client\task\refreshfeeds)
... started 17:55:02. Current memory use 32.2 MB.
DOMAINNAME/rss/file.php/16/b1104cc0fd25a2d12bb729456fe2b324/mod_forum/1/rss.xml skipping until Friday, 21 July 2023, 4:20 AM
DOMAINNAME/id/15839069/device/rss/rss.html skipping until Friday, 21 July 2023, 4:20 AM
DOMAINNAME/rss/file.php/272975/3112224e54ec53f871b2c03a220670ed/mod_forum/3583/rss.xml skipping until Friday, 21 July 2023, 4:20 AM
DOMAINNAME/rss/file.php/375568/3112224e54ec53f871b2c03a220670ed/mod_forum/5604/rss.xml skipping until Friday, 21 July 2023, 4:20 AM
DOMAINNAME/rss/file.php/392966/3112224e54ec53f871b2c03a220670ed/mod_forum/5936/rss.xml skipping until Friday, 21 July 2023, 4:20 AM
0 feeds refreshed (took 0.002867 seconds)
... used 1 dbqueries
... used 0.0097939968109131 seconds
Scheduled task complete: Refresh RSS feeds task (block_rss_client\task\refreshfeeds)
Also, checked the .xml in the /moodledata/cache/rss/mod_forum/1_f771210f8ec83265fce458db50704f08.xml returned correct data.
The feed url works in the bowser too, and same as this url DOMAINNAME/blocks/rss_client/viewfeed.php?rssid=2
Run out of the idea to fix this issue. Anyone please help.
Re: Is there a way to post news from a course on the front page of moodle?
Hi Jinxing - Can you try to redo the whole thing:
- Delete the Remote RSS Feeds block.
- Delete the RSS feed.
- Create the RSS feed again.
- Add the Remote RSS Feeds block again.