From 30c4bb2d922824c58d94f60de635b02a6ef49245 Mon Sep 17 00:00:00 2001 From: Rowanne Kabalan Date: Tue, 19 Nov 2024 15:42:09 +0000 Subject: [PATCH] Add europe navlinks --- common/app/common/editions/Europe.scala | 10 ++- common/app/navigation/NavLinks.scala | 85 +++++++++++++++++++++++++ 2 files changed, 94 insertions(+), 1 deletion(-) diff --git a/common/app/common/editions/Europe.scala b/common/app/common/editions/Europe.scala index 0011af5fdc2..791554feef5 100644 --- a/common/app/common/editions/Europe.scala +++ b/common/app/common/editions/Europe.scala @@ -13,7 +13,15 @@ object Europe locale = None, networkFrontId = "europe", editionalisedSections = Seq(""), // only the home page - navigationLinks = International.navigationLinks, + navigationLinks = EditionNavLinks( + NavLinks.eurNewsPillar, + NavLinks.eurOpinionPillar, + NavLinks.eurSportPillar, + NavLinks.eurCulturePillar, + NavLinks.eurLifestylePillar, + NavLinks.eurOtherLinks, + NavLinks.eurBrandExtensions, + ), ) { implicit val EUR: Europe.type = Europe diff --git a/common/app/navigation/NavLinks.scala b/common/app/navigation/NavLinks.scala index 6e5d44fe52c..c858f7bdd61 100644 --- a/common/app/navigation/NavLinks.scala +++ b/common/app/navigation/NavLinks.scala @@ -345,6 +345,22 @@ object NavLinks { obituaries, ), ) + val eurNewsPillar = ukNewsPillar.copy( + children = List( + world, + usElections2024, + ukNews, + climateCrisis, + ukraine, + ukEnvironment, + science, + globalDevelopment, + football, + tech, + ukBusiness, + obituaries, + ), + ) // Opinion Pillar val ukOpinionPillar = NavLink( @@ -387,6 +403,15 @@ object NavLinks { letters, ), ) + val eurOpinionPillar = ukOpinionPillar.copy( + children = List( + theGuardianView, + columnists, + cartoons, + opinionVideos, + letters, + ), + ) // Sport Pillar val ukSportPillar = NavLink( @@ -447,6 +472,18 @@ object NavLinks { usSports, ), ) + val eurSportPillar = ukSportPillar.copy( + children = List( + football, + cricket, + rugbyUnion, + tennis, + cycling, + formulaOne, + golf, + usSports, + ), + ) // Culture Pillar val ukCulturePillar = NavLink( @@ -501,6 +538,18 @@ object NavLinks { stage, ), ) + val eurCulturePillar = ukCulturePillar.copy( + children = List( + books, + music, + tvAndRadio, + artAndDesign, + film, + games, + classical, + stage, + ), + ) // Lifestyle Pillar val ukLifestylePillar = NavLink( @@ -565,6 +614,21 @@ object NavLinks { money, ), ) + val eurLifestylePillar = ukLifestylePillar.copy( + children = List( + fashion, + food, + recipes, + loveAndSex, + health, + home, + women, + men, + family, + ukTravel, + money, + ), + ) val ukOtherLinks = List( apps, @@ -617,6 +681,20 @@ object NavLinks { wordiply, corrections, ) + val eurOtherLinks = List( + apps, + video, + podcasts, + pictures, + newsletters, + todaysPaper, + insideTheGuardian, + observer, + weekly.copy(url = s"${weekly.url}?INTCMP=gdnwb_mawns_editorial_gweekly_GW_TopNav_Int"), + crosswords, + wordiply, + corrections, + ) val ukBrandExtensions = List( jobs, @@ -649,6 +727,13 @@ object NavLinks { guardianLicensing, aboutUs, ) + val eurBrandExtensions = List( + jobs, + holidays.copy(url = holidays.url + "?INTCMP=holidays_int_web_newheader"), + digitalNewspaperArchive, + guardianLicensing, + aboutUs, + ) // Tertiary Navigation // NOTE: content with tags from this list will have the navigation set to the tag in this list, rather than its