devinit / DIwebsite-redesign

New DI website 2019
1 stars 1 forks source link

Homepage - ability to create duplicate sections #1353

Closed GeorgeCarver closed 8 months ago

GeorgeCarver commented 9 months ago

Is your feature request related to a problem? Please describe. We would like additional flexibility on the homepage. It's our understanding that we can't change the order of the sections on the homepage, and we can't have multiple/duplicate sections.

Describe the solution you'd like We would like to be able to re-order sections of the homepage if we wanted to. We would also like to be able to create duplicate sections. E.g. so if we want to use a 'featured content' section, then have some more sections, then have another 'featured content' section.

Links to pages Homepage: https://devinit.org/ Homepage in Wagtail: https://www.devinit.org/admin/pages/3/edit/

Project Growth and external relations --> Website content updates.

Budget Code P0589-2.01.02.03 or P0589-2.01.02.02

Additional context image

Requested Delivery Date: By 24/11/2023 if possible, as this is a priority for COP28.

ThatcherK commented 9 months ago

@wakibi , @akmiller01 , this sounds like a totally new home page(especially the content), and using a streamField for the content, something similar to what we have in publication pages? Something similar to this

Screenshot 2023-11-15 at 12 16 21
akmiller01 commented 9 months ago

@ThatcherK I think it would involve a StreamField, but I don't know if it would require a full refactor. I think we could turn many of the existing homepage template sections into Blocks.

A strategy that Fffunction has used for transitioning a home page like this in the past was to not erase the previous fields, add the new StreamField, and also add a Boolean field with a toggle to switch the home page content from the past fields to the new streamfield. That way, streamfield content can be added gradually and previewed, and then when it's all ready, the boolean can be ticked to make the change (instead of the home page disappearing when a migration is made).

ThatcherK commented 9 months ago

Sounds like a good strategy, I was worried about the migration!

GeorgeCarver commented 9 months ago

Hello all! Thanks for getting onto this so quickly. Is it going ok? Let me know if you need any more information or feedback from me. And do you think this will be do-able in time for this Friday? Best, George

ThatcherK commented 9 months ago

Hi @GeorgeCarver I have already started work on this, will be putting it up for review, then I will also let you know when to test soon! Yes I think it will be ready by Friday

GeorgeCarver commented 9 months ago

Thank you @ThatcherK! It's worth me saying that I don't work on Thursdays and Fridays at the moment. So please loop @SimonMurphyDI and Martha Jackson in for reviewing/supporting with feedback on those days.

ThatcherK commented 9 months ago

@GeorgeCarver , @SimonMurphyDI , this is ready for testing on the dev site. To test

  1. Go to admin page of the HomePage
  2. Below the Sections panel , there is a new field called New content, this will help with switching to the new content arrangement once editing is done. So it should be checked, inorder to reflect the new content while hiding the old content in the template. It should also be checked while editing new content for preview.
  3. The new content can be added under the Content Panel which is just below the New Content checkbox, This has Featured work, Featured content and Sections.
SimonMurphyDI commented 9 months ago

This is perfect, thanks!

SimonMurphyDI commented 9 months ago

@ThatcherK