feat: #3616585 Add a Featured news posts block display to the news view

Fixes #3616585.

Problem/Motivation

The news view ships all, latest, related and an RSS feed, but nothing rendering news as featured cards. A site template wanting a small latest-news panel had to define its own block display — which is what the Educare site template did, carrying ~70 lines of news-view configuration in its own recipe.yml, unavailable to any other consumer of this recipe.

Proposed resolution

Add a featured block display to config/views.view.news.yml, beside latest and related:

  • two latest published posts, no pager
  • featured_card_medium view mode
  • single-column grid, so it fits a narrow column

Component ids are the base theme's (vartheme_bs5:), exactly as the existing displays declare them. A site on vartheme_bs5 gets working output as shipped; a site template with its own theme repoints them through setViewsComponentStyleTheme, as it already does for every other display.

Testing

Verified on a fresh Varbase 11 install of the Educare site template, which consumes this recipe:

  • the display arrives from this recipe and is repointed automatically to vartheme_bs5_educare:views-view-grid
  • it renders two real, distinct news posts
  • 0 render errors across all 12 site pages
  • a prop audit over every Canvas content template — 608 values, 24 templates — reports 0 invalid values

Diff is +74 / −1, additive.

AI-Generated: Yes

Checkpoints:

  • File an issue
  • Addition/Change/Update/Fix
  • Testing to ensure no regression
  • Automated unit testing coverage
  • Automated functional testing coverage
  • UX/UI designer responsibilities
  • Readability
  • Accessibility
  • Performance
  • Security
  • Developer Documentation
  • User Guide Documentation
  • Reviewed by human
  • Code review by maintainers
  • Full testing and approval
  • Credit contributors
  • Review with the product owner
  • Release notes snippet
  • Release
Edited by Rajab Natshah

Merge request reports

Loading