Related Navigation example
With curated topics and mainstream browse pages and taxons
Currated topics and mainstream browse pages take precedence over the sidewide topic taxonomy.
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"
}
],
taxons: [
{
title: "Driving instruction and driving lessons",
base_path: "/transport/driving-instruction-and-driving-lessons",
phase: "live",
document_type: "taxon"
}
],
topics: [
{
title: "Cars",
base_path: "/topic/driving-tests-and-learning-to-drive/car",
document_type: "topic"
}
]
}
}
} %>