Skip to content

[FEATURE] News: Add Container Object News Period Setting - #11920

Open
matheuszych wants to merge 3 commits into
ILIAS-eLearning:trunkfrom
matheuszych:feature/12/container_object_news_period
Open

matheuszych wants to merge 3 commits into
ILIAS-eLearning:trunkfrom
matheuszych:feature/12/container_object_news_period

Conversation

@matheuszych

Copy link
Copy Markdown
Contributor

See: https://docu.ilias.de/go/wiki/wpage_8964_1357

Added a global container-object news period and per-container hide modes (global, none, per date, by period). Replaced the checkbox-only date filter with a radio group in ilContainerNewsSettingsGUI, extended NewsCollectionService to apply the selected mode when loading news, and added the related administration settings and language strings.

@oliversamoila oliversamoila added improvement php Pull requests that update Php code translations Pull requests that propose changes to ILIAS language files. labels Aug 17, 2026
@thojou
thojou requested a review from alex40724 September 23, 2026 14:40
@thojou

thojou commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

Hey @alex40724,

I would kindly ask you to take a quick look at the changes, as part of the PR affects one of your components.

Please also let me know if you do or do not have any particular concerns about the changes in that area, since the code is related to the News component rather than the Container component.

We are currently planning to consolidate all code belonging to the News component that is currently distributed across other components. Our goal is to move this code back into the News domain with the next trunk version and provide only a few well-defined interfaces for other components to consume. This should reduce the overlap in PRs of this kind in the future.

Best regards,
@thojou

@matheuszych
matheuszych force-pushed the feature/12/container_object_news_period branch 2 times, most recently from c7b4eb4 to 5a1aa2a Compare September 25, 2026 05:53
@oliversamoila oliversamoila removed their assignment Sep 25, 2026
@Chris-Squirrel

Copy link
Copy Markdown
Contributor

In #12163 I've suggested a rewording of the news_hide_news_per_date family - the label is now „Startdatum für Neuigkeiten" and the info line reads „Neuigkeiten werden erst ab einem bestimmten Datum angezeigt. Ältere Neuigkeiten werden ausgeblendet."

Since this PR adds the new radio family (news_hide_news_mode / _none / _global / _by_period) right next to those, we might want to align our proposed changes to see that the styles match?

@matheuszych

Copy link
Copy Markdown
Contributor Author

Hello @Chris-Squirrel ,
i agree that it’s a good idea to keep the wording consistent.

If you share the exact wording you have in mind for each variable, I’d be happy to make the adjustments.

Best regards
@matheuszych

@Chris-Squirrel Chris-Squirrel left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some suggestions for tweaks to the English / harmonisation with my recent PR.

Comment thread lang/ilias_en.lang Outdated
news#:#news_hide_news_by_period_info#:#Only news that are in the given period will be displayed.
news#:#news_hide_news_date#:#Starting Date
news#:#news_hide_news_global#:#Use global setting
news#:#news_hide_news_mode#:#Limit news display

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has to be in title case. I would also like to suggest something more exact.... like 'Time-Based News Restriction' - this brings it closer to the German too.

Comment thread lang/ilias_en.lang Outdated
news#:#news_hide_news_global#:#Use global setting
news#:#news_hide_news_mode#:#Limit news display
news#:#news_hide_news_none#:#Do not limit news
news#:#news_hide_news_per_date#:#Show News After

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok - this is interesting. I suggested changing this in my PR to 'news#:#news_hide_news_per_date#:#Start Date for News'. In light of your changes to where this label is shown, however, we will need to change it to sentence case in English. As this is now a radio button option, I think we can be a bit longer and maybe even drop the info line? How about: "Show news starting from a specific date"?

Comment thread lang/ilias_en.lang Outdated
news#:#news_hide_news_mode#:#Limit news display
news#:#news_hide_news_none#:#Do not limit news
news#:#news_hide_news_per_date#:#Show News After
news#:#news_hide_news_per_date_info#:#Only news that are newer than a certain date will be displayed.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe we can now drop this info line.

Comment thread lang/ilias_en.lang Outdated
news#:#news_hide_news_date#:#Starting Date
news#:#news_hide_news_global#:#Use global setting
news#:#news_hide_news_mode#:#Limit news display
news#:#news_hide_news_none#:#Do not limit news

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about: "Do not restrict news"?

Comment thread lang/ilias_en.lang Outdated
news#:#news_get_priv_feed_title#:#Personal private Feed-URL
news#:#news_hide_news_block#:#Hide News Block
news#:#news_hide_news_block_info#:#Hide block in learner's view. The news block will only be visible for users with write permission.
news#:#news_hide_news_by_period#:#Show News by Period

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: Show news from the last week, month or year - and drop the info line(?)

Comment thread lang/ilias_en.lang Outdated
news#:#news_cache_info#:#Update news blocks all x minutes. ‘0’ means every time. Higher values improve performance, but news may link to non-accessible items.
news#:#news_default_visibility#:#Default Access
news#:#news_co_period#:#Container-Objects News Period
news#:#news_co_period_info#:#Defines the time period used for news in Container-Objects. Select lower values, if you experience any performance problems.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about: Select the default period for which news is displayed in container-objects. This setting can be overridden for each object individually. Select a shorter period if you experience performance problems.

Comment thread lang/ilias_en.lang Outdated
news#:#news_cache#:#News Cache (Minutes)
news#:#news_cache_info#:#Update news blocks all x minutes. ‘0’ means every time. Higher values improve performance, but news may link to non-accessible items.
news#:#news_default_visibility#:#Default Access
news#:#news_co_period#:#Container-Objects News Period

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Slightly more natural sounding: News Period for Container-Objects

Comment thread lang/ilias_en.lang Outdated
news#:#news_default_visibility#:#Default Access
news#:#news_co_period#:#Container-Objects News Period
news#:#news_co_period_info#:#Defines the time period used for news in Container-Objects. Select lower values, if you experience any performance problems.
news#:#news_container_object_visibility_settings#:#Visibility Settings of News on Container-Objects

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Visibility Settings of News in Container-Objects

Comment thread lang/ilias_en.lang Outdated
news#:#news_rss_title_format_news_obj#:#News Headline (Object Title)
news#:#news_rss_title_format_obj_news#:#Object Title - News Headline
news#:#news_settings#:#News Settings
news#:#news_settings#:#General Settings of News

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This variable is used in three locations I think. I don't feel that 'General' is really accurate when a user edits the news block on their dashboard...?

Comment thread lang/ilias_en.lang Outdated
See: https://docu.ilias.de/go/wiki/wpage_8964_1357

Added a global container-object news period and per-container hide modes
(global, none, per date, by period). Replaced the checkbox-only date filter
with a radio group in `ilContainerNewsSettingsGUI`, extended
`NewsCollectionService` to apply the selected mode when loading news, and
added the related administration settings and language strings.
See: https://docu.ilias.de/go/wiki/wpage_8964_1357

Grouped the administration news settings into separate sections for
dashboard and container-object visibility. Moved the container news
period below its own header and updated related language strings for the
new section titles and labels.
@matheuszych
matheuszych force-pushed the feature/12/container_object_news_period branch from 5a1aa2a to d40678e Compare October 6, 2026 09:24
@matheuszych

Copy link
Copy Markdown
Contributor Author

Hello @Chris-Squirrel ,
thank you again for this extensive feedback!

I applied your suggestions as a separate commit for now.

@oliversamoila @thojou Please also take a look and let me know if that’s okay with you.

Best regards
@matheuszych

@oliversamoila oliversamoila left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Chris-Squirrel and @matheuszych.
Additional changes approved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement php Pull requests that update Php code translations Pull requests that propose changes to ILIAS language files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants