Legal page template and Table of contents component
The Legal page template is for Scotland’s and England’s Legal sections only, with fields to meet the various content needs of their users.
To start, use Add entry (upper right in the main content dashboard) to select Page - Legal
Then complete your fields:
Title – this will generate the H1 atop the page
Slug – this will be auto-generated when you complete the Title field. Once your slug is in place, click Set to validate it.
NOTE: Once your slug is set and your page published, do not change it. A page’s URL is the address the entire web knows it by. To change it invites mayhem.Full path – Click Select parent to assign a tree hierarchy to your page, which assigns a full path (everything below the root domain) to give your path a URL. (Note: until you select a parent, you will only see the Preview page option. Once your page has a full path, the Live page option appears.
In the pop-up window, open the navigation tree you’ll use (Legal - the example below is just for demonstration). Open each level and sub-level until you find the page which will be the parent to yours. Click the link icon. Back on your page, a full path should now appear and the Live page option will appear. The live page view will not work until you’ve published the page.
Applicable countries
Body copy – This is where your page intro goes.
a. Write or paste your text into the rich text editor (RTE). To paste content copied from another page or source, use Ctrl + Shift + V, which removes any previous formatting
b. Format your text – remember to add P breaks before each change of formatting or new paragraph:
c. Place your cursor before the first character of a new paragraph
d. Backpace until the end of the previous paragraph
e. Hit Enter to create a full paragraph break
Once you’ve stripped previous formatting and set up your <P> breaks, you can:
format your body copy as either normal text or an H2
make your text bold or italic
create bulleted or numbered lists
create hyperlinks to internal entries (which can include an external link component)
embed an image
7. Create your Table of Contents components. These will be the subhead and body text of each subsection of your page.
Click Create new component - Table of contents and link. (You can also create all of these components before you build your page, in which case you’ll use Link existing entries.)
Enter the Name, which is what it will be called in the system. The Legal teams will know best what naming conventions to follow, but we recommend using a unique name combining the page title with the subhead. For example: Flexible tenancies - Ending a flexible tenancy
The Title of each of these components will do 2 things: 1) It will display as the H3 subhead for the block of text; 2) It will display as a jump link to that H3, within a jump menu at the top of your page.
For the Text content, write or paste your text (see guidance on pasting above).
Once you’ve formatted your text, you need to set up the footnotes. You do this by putting each footnote within the body text contained within square brackets, eg [
Age of Legal Capacity (Scotland) Act 1991; Finnie v Finnie, 1984 SLT 109]
- This will appear to the user as just a clickable number within the brackets, taking to the actual footnote at the bottom of the page:
Click Publish
TIP: To build a number of Table of Contents components in succession, once you’ve published your first component, duplicate it to quickly create your next one. Click the 3 dots upper right and select Duplicate, then rename your next entry, complete and publish it, then duplicate that one - and so on.
8. Page information - this is your page metadata to drive organic search and social traffic. Read our guidance on the page metadata component.
9. Legislations - create new external link components, or link to existing entries, for the external links to legislation websites.
10. Essential links - create new external link components or link to existing ELCs or legal page entries.
11. Downloads - if your page will provide downloads such as letter templates for users, create new or link to existing Download components. See the guidance on this component.
12. Last Amended - use the date picker to select the date your page has been updated
13. Last Amended summary - this will be used on the Legal ‘What’s new' page to tell users what’s been changed about the page
14. To see your page, click Preview and when you’re ready, Publish it.
Any questions? Email Lindsay Foley in the Central Digital team.