Related Navigation example
With curated topics and mainstream browse pages
Currated topics and mainstream browse pages are combined.
How it looks (preview)
How to call this example
<%= render "govuk_publishing_components/components/related_navigation", {
content_item: {
links: {
mainstream_browse_pages: [
{
title: "Driving licences",
base_path: "/browse/driving/driving-licences",
document_type: "mainstream_browse_page"
},
{
title: "Driving tests and learning to drive or ride",
base_path: "/browse/driving/learning-to-drive",
document_type: "mainstream_browse_page"
}
],
topics: [
{
title: "Cars",
base_path: "/topic/driving-tests-and-learning-to-drive/car",
document_type: "topic"
}
]
}
}
} %>