EDRN / P5

EDRN Production Program for the Public/Private Portal (P5)
https://edrn.nci.nih.gov/
Other
1 stars 0 forks source link

Improve social media in footer #311

Closed nutjob4life closed 6 months ago

nutjob4life commented 6 months ago

๐Ÿค” Tell Us About the Feature

Currently the EDRN portal's footer has links to Facebook and Twitter. These cannot be changed. We should have a way to update these as needed without software updates.

๐ŸŽ‡ What Solution You'd Like

Make a social media control panel that doesn't hardcode Facebook and Twitter into the footer.

๐Ÿ—บ Context

First off, Twitter isn't Twitter anymore. And chances are, this so called "X" may just implode if its owner's behavior continues. Second, NCI has more social media than just Facebook. It also has Instagram, LinkedIn, and YouTube. Different divisions also have different social media.

If things suddenly change, we'd have to wait for a software change to update the social media. We need a better way.

nutjob4life commented 6 months ago

Hi @hoodriverheather this is ready! To QC this:

  1. Visit the dev portal and scroll down to the footer
  2. Confirm you see icons for Facebook (and should go to the general NCI Facebook page), LinkedIn (and should go to the DCP LinkedIn page), and for X (should go to the DCP Twitter page)
  3. Log in as a super user
  4. From the Wagtail admin, click Snippets in the left-side menu, then Social media links
  5. Click on X (for example) and un-check the "Enabled" box, then click Save
  6. Click "Add social media link" and add a new one, such as name = Instagram (capital I), url = https://www.instagram.com/nationalcancerinstitute/, boostrap icon = instagram (lowercase i), enabled = โœ“, then click Save
  7. Because the footer is not expected to change often and is "heavily cached", we now need to clear the caches. Click the NIH logo in the left side menu, then click "Clear Caches". Or wait 7 days ๐Ÿ˜‰
  8. Return to the home page
  9. Confirm you see now Facebook, Instagram, and LinkedInโ€”and no X.

You don't have to put things back as it'll all be reset during the next nightly build.

hoodriverheather commented 6 months ago

@nutjob4life This totally works. However, i delete X instead of disabling (sorry, not sorry). Hope that doesn't mess up the nightly build. Thanks!

nutjob4life commented 6 months ago

@hoodriverheather doesn't mess up a thing! After all, the entire site is blown up and we start from scratch each night. I look forwarding to including this in the next release. Thanks for the QC!