Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/_includes/components/image-with-caption.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<figure class="nhsuk-image-with-caption {{ include.class | xml_escape }}">
<figure class="nhsuk-image-with-caption {{ include.classes | xml_escape }}">
{% assign src = '/assets/images/' | prepend: site.baseurl | append: include.src %}
{% if include.src contains 'https://' %}
<img class="nhsuk-image__img" src='{{ include.src | uri_escape }}' alt='{{ include.alt | xml_escape }}' />
Expand Down
2 changes: 1 addition & 1 deletion docs/_includes/components/image.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<figure class="nhsuk-image {{ include.class | xml_escape }}">
<figure class="nhsuk-image {{ include.classes | xml_escape }}">
{% assign src = '/assets/images/' | prepend: site.baseurl | append: include.src %}
{% if include.src contains 'https://' %}
<img class="nhsuk-image__img" src='{{ include.src | uri_escape }}' alt='{{ include.alt | xml_escape }}' />
Expand Down
2 changes: 1 addition & 1 deletion docs/_includes/components/inset-text.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="nhsuk-inset-text">
<div class="nhsuk-inset-text {{ include.classes | xml_escape }}">
<span class="nhsuk-u-visually-hidden">Information:</span>
{{ include.text | markdownify }}
</div>
4 changes: 2 additions & 2 deletions docs/pages/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ permalink: /
%}
</div>
<div class="nhsuk-grid-column-one-half">
{% include components/image.html src=site.data.home.heading.image alt=site.data.home.heading.image_alt class="nhsnotify-image" %}
{% include components/image.html src=site.data.home.heading.image alt=site.data.home.heading.image_alt classes="nhsnotify-image" %}
</div>
</div>
</div>
Expand Down Expand Up @@ -89,7 +89,7 @@ permalink: /
%}
</div>
<div class="nhsuk-grid-column-one-half">
{% include components/image.html src=site.data.home.find-out-more.image alt=site.data.home.find-out-more.image_alt class="nhsnotify-image" %}
{% include components/image.html src=site.data.home.find-out-more.image alt=site.data.home.find-out-more.image_alt classes="nhsnotify-image" %}
</div>
</div>
</div>
Expand Down
19 changes: 13 additions & 6 deletions docs/pages/using-nhs-notify/personalisation.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ You can send personalised messages by adding personalisation fields to a single
Use double brackets to add a personalisation field to your template. Do not include spaces in your personalisation fields. For example:

{% include components/inset-text.html
text='`Hello ((fullName)), your NHS Number is ((nhsNumber)). Your appointment is on ((appointmentDate)) at ((gpSurgery)).`'
text='Hello `((fullName))`, your NHS Number is `((nhsNumber))`. Your appointment is on `((appointmentDate))` at `((gpSurgery))`.'
classes='nhsuk-u-margin-top-2'
%}

You can read personalisation instructions while you’re editing a template.
Expand All @@ -37,7 +38,8 @@ You can use the following PDS fields:
- date

{% include components/inset-text.html
text='Make sure your personalisation fields match the PDS personalisation fields. This includes using the correct order of upper and lower case letters.'
text='Make sure your personalisation fields match the PDS personalisation fields. This includes using the correct order of upper and lower case letters.'
classes='nhsuk-u-margin-top-2'
%}

## Custom personalisation fields (your data)
Expand Down Expand Up @@ -94,7 +96,9 @@ text='

- New Surgery (short)
- The Health Centre, Knaresborough Road (medium)
- Church Avenue and Park Grove Medical Group Surgery (long)'
- Church Avenue and Park Grove Medical Group Surgery (long)
'
classes='nhsuk-u-margin-top-2'
%}

Follow these rules for your example data:
Expand All @@ -109,7 +113,8 @@ Follow these rules for your example data:
To add personalised links and URLs, include personalisation fields for both the link text and the URL in your template. For example:

{% include components/inset-text.html
text='`[((link_text))](((link_URL)))`'
text='`[((link_text))](((link_URL)))`'
classes='nhsuk-u-margin-top-2'
%}

### Fields to avoid for custom personalisation
Expand All @@ -129,11 +134,13 @@ If you use custom personalisation, do not use the following personalisation fiel
- template

{% include components/inset-text.html
text='Using these fields will cause custom personalisation to fail. This includes any variations, for example, if you add spaces, punctuation, and upper or lower case letters.'
text='Using these fields will cause custom personalisation to fail. This includes any variations, for example, if you add spaces, punctuation, and upper or lower case letters.'
classes='nhsuk-u-margin-top-2'
%}

You can include extra words in your custom personalisation fields to make them different to the fields to avoid. For example, if you wanted to include GP surgery phone number, your personalisation field could be:

{% include components/inset-text.html
text='`((GP_phoneNumber))`'
text='`((GP_phoneNumber))`'
classes='nhsuk-u-margin-top-2'
%}
Loading