Actions
Feature #43632
openShow a message when recent_pages macro does not return any page
Resolution:
Files
Related issues
Updated by Florian Walchshofer 3 months ago
- File show_message_no_page_found_recent_page_makro.patch show_message_no_page_found_recent_page_makro.patch added
- File show_message_no_page_found_localization.patch show_message_no_page_found_localization.patch added
a patch to show a message, if no pages where found
with test an localization
return l(:label_no_recent_wiki_pages, days: days_to_list) if pages.empty?
label_no_recent_wiki_pages: "No wiki pages updated within the last %{days} days."
Updated by Marius BĂLTEANU 2 months ago
- Related to Feature #38501: recent_pages macro that displays a list of recently updated Wiki pages added
Updated by Marius BĂLTEANU 2 months ago
- File Screenshot 2026-01-23 at 22.28.39.png Screenshot 2026-01-23 at 22.28.39.png added
- File Screenshot 2026-01-23 at 22.36.29.png Screenshot 2026-01-23 at 22.36.29.png added
Existing {{child_pages}} macro does not show any message where the are no child pages, here is a test on the current trunk:

If a add the text just as plain text, it looks quite akward:

I think we need to improve the UI for this, but I'm not sure which is the best option. Any ideeas?
Updated by Marius BĂLTEANU about 2 months ago
- Target version changed from 6.1.2 to Candidate for next minor release
I'm assigning this for next versions until we get some feedback regarding the implementation.
Updated by Florian Walchshofer 16 days ago
- File B_show_message_no_page_found_recent_page_makro.patch B_show_message_no_page_found_recent_page_makro.patch added
- File noWikiPageUpdated_B.png noWikiPageUpdated_B.png added
Added a new patch: The 'No wiki pages updateted' message is now wrapped in a ul/li structure to ensure consistent styling with the standard results list.

Actions