Skip to content

Clearer info text for RSS feed option in news settings of forums and containers - #12088

Merged
thojou merged 3 commits into
ILIAS-eLearning:trunkfrom
Chris-Squirrel:Clearer-news-entries-for-RSS-Feed-links
Oct 28, 2026
Merged

thojou merged 3 commits into
ILIAS-eLearning:trunkfrom
Chris-Squirrel:Clearer-news-entries-for-RSS-Feed-links

Conversation

@Chris-Squirrel

Copy link
Copy Markdown
Contributor

Description

This PR improves the info text for the "Extra RSS Feed" option in the news settings of containers (Categories, Courses, Groups) and Forums.

Problem: I am soon going to create a PR for a general overhaul of the 'news' language entries. The current info text (news_public_feed_info) needs to be re-written generally. While trying to re-write it, I realised that I would have to leave it frustratingly vague because it is used in Media Casts, Courses, Groups, Containers and Forums... and the Feed link is found in areas that are named differently in each.

Solution: Two new language variables with clearer wording that references the block where the feed URL appears:

  • news_public_feed_info_container — for categories, courses and groups (references the "News" block)
  • news_public_feed_info_frm — for forums (references the "Latest Posts" block, since the news block is renamed in forums via ilObjForumGUI::setColumnSettings())

The original news_public_feed_info remains unchanged for MediaCast settings and the legacy block settings form, although I will be clearing up this entry in the upcoming 'news' overhaul

Code change: In ilNewsForContextBlockGUI::addToSettingsForm(), a small condition selects the appropriate variable based on object type (forum vs. other containers). I obviously had writing these four lines of code - from Mistral AI.

@Chris-Squirrel Chris-Squirrel added improvement translations Pull requests that propose changes to ILIAS language files. labels Sep 18, 2026
@Chris-Squirrel
Chris-Squirrel marked this pull request as ready for review September 18, 2026 10:02
@thojou
thojou force-pushed the Clearer-news-entries-for-RSS-Feed-links branch 3 times, most recently from d5628c4 to 54dc105 Compare October 27, 2026 14:31
@thojou

thojou commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Hey @Chris-Squirrel,

thanks for the PR.

I've changed the logic behind the labels based on context, so the NewsForContextBlockGUI no longer needs an extra database roundtrip to determine the object type. I let the consumer define the respective label.

@mjansenDatabay, @alex40724 – I've adjusted the code in your components accordingly. These are just tiny adjustments, so no further review is required.
If any objections arise regarding my changes inside your components, I will address them as soon as possible.

I'll merge this PR tomorrow.

Kind regards,
@thojou

Chris-Squirrel and others added 3 commits October 28, 2026 11:38
The extra RSS checkbox picked its info text by checking whether the object type is a forum. The caller now passes the language key into `ilNewsForContextBlockGUI::addToSettingsForm`. `ilContainerNewsSettingsGUI` keeps `news_public_feed_info_container` as the default. The forum overrides that key with `news_public_feed_info_frm` before the command is forwarded.
@thojou
thojou force-pushed the Clearer-news-entries-for-RSS-Feed-links branch from 54dc105 to bbaac5f Compare October 28, 2026 10:43
@thojou

thojou commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

Hey @Chris-Squirrel,

i adjusted the PR once again and moved the new language variables into their new home.

I'm going to merge this now.

Kind regards,
@thojou

@thojou
thojou merged commit 27c7d08 into ILIAS-eLearning:trunk Oct 28, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement translations Pull requests that propose changes to ILIAS language files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants