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

With brexit cta document exception

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

How it looks (preview)

How to call this example

<%= render "govuk_publishing_components/components/contextual_sidebar", {
  content_item: {
    title: sanitize("30 creative teams awarded up to £100,000 each for Festival UK* 2022 R&D project"),
    content_id: "c3752802-f091-43a9-ba90-33568fccf391",
    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: "e2ca2f1a-0ff3-43ce-b813-16645ff27904",
          title: "Society and culture",
          phase: "live"
        }
      ]
    }
  }
} %>