1. Component Guide
  2. Contextual sidebar
  3. With brexit cta taxon exception
Contextual sidebar example

With brexit cta taxon exception

Illustrates an exception to showing the custom Brexit call to action element as defined in brexit_cta_taxon_exception_list.

How it looks (preview)

How to call this example

<%= render "govuk_publishing_components/components/contextual_sidebar", {
  content_item: {
    title: "Local transport news story",
    content_id: "5c82db20-7631-11e4-a3cb-005056011aef",
    locale: "en",
    links: {
      ordered_related_items: [
        {
          title: "Find an apprenticeship",
          base_path: "/apply-apprenticeship"
        },
        {
          title: "Training and study at work",
          base_path: "/training-study-work-your-rights"
        },
        {
          title: "Careers helpline for teenagers",
          base_path: "/careers-helpline-for-teenagers"
        }
      ],
      document_collections: [
        {
          title: "Recruit an apprentice (formerly apprenticeship vacancies)",
          base_path: "/government/collections/apprenticeship-vacancies",
          document_type: "document_collection"
        },
        {
          title: "The future of jobs and skills",
          base_path: "/government/collections/the-future-of-jobs-and-skills",
          document_type: "document_collection"
        }
      ],
      taxons: [
        {
          content_id: "3b4d6319-fcef-4637-b35a-e3df76321894",
          title: "Local transport",
          phase: "live",
          links: {
            parent_taxons: [
              {
                content_id: "a4038b29-b332-4f13-98b1-1c9709e216bc",
                title: "Transport"
              }
            ]
          }
        }
      ]
    }
  }
} %>