localgovdrupal / localgov_services

Provides the pages and navigation for presenting the Services provided by Local Government. A part of the LocalGovDrupal distribution.
GNU General Public License v2.0
3 stars 4 forks source link

Adding external links from service landing and sub landing pages #266

Open willguv opened 1 month ago

willguv commented 1 month ago

Service landing and sub landing pages only support child pages that are part of that LGD install. It's not easy to link from these pages to third party sites

Slack discussion: https://localgovdrupal.slack.com/archives/C020SJRQX2M/p1721396960717119

Council examples

https://www.ipswich.gov.uk/services/housing ('Gateway To Homechoice' link at foot of page)

https://www.west-lindsey.gov.uk/jobs-volunteering-employment ('Current vacancies')

@benhillsjones I know you have a few examples - could you post them in this thread please? Thanks

willguv commented 1 month ago

I think we need to:

willguv commented 1 month ago

Ryan at H&F has created a new 'external link' content type

Maria at BF has done some custom work to overcome this

Andy at Brighton's solution is to replace all of this with paragraphs (find out more)

We need to agree:

Let's have a one off meeting about this

andybroomfield commented 1 month ago

Eg. https://www.brighton-hove.gov.uk/fostering-brighton-hove

Screenshot 2024-08-09 at 11 37 01 AM

Uses a new paragraph type called tiles Screenshot 2024-08-09 at 11 38 02 AM

Which is used to build out new style landing pages.

andybroomfield commented 1 month ago

I think in general the landing and linking structure needs a rethink, as it was based on landing -> sub hub -> service page. That has evolved considerbly since it's initial inception (2018)?

Theres also a duality between the landing pages which just uses entity references, and the sub landing pages which uses link fields and can have external links, but becuase of the way the link fields renders if its an internal link it will get the title and summary, whereas if it is an external link or a link to a non node page, it will just display the title and look out of place (hence of lot of workarounds with redirect pages). It also means changing a link title or description isn't possible as changing it in the link fields doesn't effect the rending in the front end.

The sub landing pages are also included in a paragraph topic_list_builder which has options for a header and taxonomy link. This is a holdover from sub landing pages which would split into many sections though I think it's only BHCC that makes use of them, and that is on leagacy pages.

Proposal

Above would replace the current landing / sub-landing link structure, so would need to handled in an update hook. Has possible implications that it makes a major version change.