Support displaying the RSS feed icon on the WOTD block

Created on 30 June 2023, over 1 year ago
Updated 3 July 2023, over 1 year ago

Problem/Motivation

The WOTD feed is not easily discoverable : it is up to site admins to provide links to it.

Provide a no-code / no-template way to enable/disable showing a RSS feed icon on the WOTD block.

Steps to reproduce

n.a.

Proposed resolution

  • Add a config entry to the config schema
  • Add a default config value
  • Add a G2 constant for it or reuse an existing key brough in the legacy code in g2.module / g2.legacy.inc
  • Add an associated element in SettingsForm::buildBlockForm()
  • Add a $build key in WotdBlock::build() to render that icon
  • Implement it so it uses the feed-icon.html.twig template, to allow site builders to style it if needed.
  • Clean up the remaining D6/D7 procedural code in g2.module / g2.legacy.inc that remained to show that feature.

Remaining tasks

Do it.

User interface changes

  • A new settings form element
  • A new feed icon on the WOTD block

API changes

None.

Data model changes

A new config key.

Feature request
Status

Fixed

Version

1.0

Component

User interface

Created by

🇫🇷France fgm Paris, France

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024