Uploaded image for project: 'Planet4'
  1. Planet4
  2. PLANET-7648

Add an opt-in Archive notice on old Posts

XMLWordPrintable

    • 3
    • Posts
    • Sprint #247, Sprint #248
    • proteus

      Summary

      Inspired by GPAP relevant implementation we can have a notice on really old Posts for end users to know that the information there may not be relevant anymore.

      Requirements

      • The functionality should be opt-in, so add a feature flag under Planet 4 > Features.
        • Label: "Old Posts Archive notice"
        • Adds: "Displays a notice on top of old Posts" (new line <br>) "Adjust its behavior and text through Defaults content settings" (link the last 3 words to Planet 4 > Defaults contens).
      • Adds three relevant fields under Planet 4 > Defaults content.
        • Single line number input (max: 2 digits). Label: "Old Posts Archive notice cutoff years". Help text: "Condition to determine when to show the notice, in years.<br>Any Post older than that will have the notice displayed on the top."
        • Single line text input. Label: "Old Posts Archive notice title".
        • Textarea input: Label: "Old Posts Archive notice description".
        • Single line text input. Label: "Old Posts Archive button text".
      • Default values:
        • Cutoff: 10
        • Title: "Oldies But Goodies Alert!"
        • Description: "Hey there! Just a quick note: the stuff you're browsing through is mostly for nostalgia and archival kicks. So, before you go basing any big decisions on what you find here, maybe double-check with some fresher content."
        • Button text: "Read the latest from <Site name>"
      • Add a migration to pre-populate the above default values.
      • Design requirements below. Although we follow the GPAP example (see screenshot), we need to override some UI elements:
        • Background color of the block: Beige-100 (#F6F4EF) instead of blueish
        • Title: Heading Styling - Greenpeace Sans font instead of work sans
        • The CTA Should follow the secondary CTA button description on the design system, (the font should be Greenpeace Sans)
        • Text Font: Black (#000000) instead of green
      • The button should link to the same Post Type listing page.
      • The dates we compare are: Today vs Published Date

      Resources

            pfiguero Pedro Figueroa
            nroussos Nikos Roussos
            Carolina Romo Angulo Carolina Romo Angulo
            Nikos Roussos Nikos Roussos
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: