{% assign showbackbutton = true %}
{% assign backbuttontext = "Back to GP Connect" %}

{% if page.sidebar == "overview_sidebar" or page.sidebar == "home_sidebar" %}
{% assign sidebar = site.data.sidebars.overview_sidebar.entries; %}
{% assign showbackbutton = false %}
{% assign quicklinks = site.data.sidebars.overview_related.link %}

{% elsif page.sidebar == "foundations_sidebar" %}
{% assign sidebar = site.data.sidebars.foundations_sidebar.entries %}
{% assign quicklinks = site.data.sidebars.foundations_related.link %}

{% elsif page.sidebar == "appointments_sidebar" %}
{% assign sidebar = site.data.sidebars.appointments_sidebar.entries %}
{% assign quicklinks = site.data.sidebars.appointments_related.link %}

{% elsif page.sidebar == "accessrecord_structured_sidebar" %}
{% assign sidebar = site.data.sidebars.accessrecord_structured_sidebar.entries %}
{% assign quicklinks = site.data.sidebars.accessrecord_structured_related.link %}

{% else %}
{% assign sidebar = site.data.sidebars.overview_sidebar.entries %}
{% assign quicklinks = site.data.sidebars.overview_related.link %}
{% endif %}



{% comment %}
sidebar configuration for print files
{% endcomment %}

{% if site.product == "overview" %}
{% assign sidebar_pdf = site.data.sidebars.overview_sidebar.entries %}
{% endif %}

{% if site.product == "foundations" %}
{% assign sidebar_pdf = site.data.sidebars.foundations_sidebar.entries %}
{% endif %}

{% if site.product == "appointments" %}
{% assign sidebar_pdf = site.data.sidebars.appointments_sidebar.entries %}
{% endif %}

{% if site.product == "accessrecord_structured_sidebar" %}
{% assign sidebar_pdf = site.data.sidebars.accessrecord_structured_sidebar.entries %}
{% endif %}
