devinit / DIwebsite-redesign

New DI website 2019
1 stars 1 forks source link

Show most recent related content in publications #1306

Closed davidebukali closed 1 year ago

davidebukali commented 1 year ago

Is your feature request related to a problem? Please describe. After adding related content to a publication based on country or tag, the publication does not display the most recent related content.

Describe the solution you'd like We would like the most recent related content to always be displayed for all available related options including by country, tag or manually selected

Project This is connected to the DI Website.

SimonMurphyDI commented 1 year ago

Hi David, this looks like it's working perfectly. One issue that came up for me is that sometimes the automatic selections chose the same page twice (only when that page exists as an alias of another - which is the case for the data tools). Is that something we can include in the code to avoid? image

davidebukali commented 1 year ago

@SimonMurphyDI I have excluded alias pages from related content, this should work across all types of resource pages. Kindly test using this publication from your shared screenshot or any other resource page.

SimonMurphyDI commented 1 year ago

Thanks David, I applied it to this page to check it. https://dev.devinit.org/admin/pages/1281/edit/ The page is topic-tagged as humanitarian But the automatic results shows content from 2021 - which isn't the latest humanitarian work. Is there a bug to check here? Best Simon image

davidebukali commented 1 year ago

Hi @SimonMurphyDI I just searched resources page for humanitarian assistance topic and it shows similar results. Maybe the latest content has not been copied over to staging from the live website.

SimonMurphyDI commented 1 year ago

Ah my bad - there is more recent humanitarian content it's just not tagged. Looks like this is good to go!

edwinmp commented 1 year ago

@davidebukali not sure if this has been deployed. If it has, please close.