This section describes how the SEO Part is used within the CMS in order to apply certain values into the back-end code for each page.
The SEO part can be added to any 'Content Type', configured on the 'Content Type' > 'Settings' tab, then edited in any corresponding 'Content Item' within the CMS.
Content Type Settings
Within the 'Settings' tab of the 'Content Type' screen 3 Fields are editable - Title, Description, and Keywords (as shown below).
These inputs are used to set the fallback values for any 'Content Items' created of this type. These values will be overwritten by any specific values entered on the 'Content Item'.
If these fields are left empty on the settings screen, no tags are created on the page (Note: A default Title tag will be inserted from the Layout file if neither Title inputs are completed).
Content Item Settings
Each content item that uses the SEO part, includes the following four input fields - Title, Description, Keywords, Canonical URL (as shown below).
Title
The title input requires a simple string input, the text entered is then injected into a <Title>[TEXT ENTERED IS INSERTED HERE]</Title> tag within the head section of the page.
The title tag should be approx 50–60 characters long.
It should describe the content of the page, and be similar but not exactly the same as the pages H1 tag.
The title tag is visible to users in the tab of the users browser (as shown below).
Description
The description input requires a simple string input, the text entered is then injected into a Meta Description tag <meta name="description" content="[TEXT ENTERED IS INSERTED HERE]"/> tag within the head section of the page.
The meta description tag should be up to 275 characters long.
It should describe the content of the page, summarising the main text content on the page.
The meta description tag is not directly visible to users, but it is often used by Google (and other search engines) as the text shown to users alongside a link to your page.
Keywords
The keywords input requires a simple string input, the text entered is then injected into a Meta Keywords tag <meta name="keywords" content="[KEYWORDS ENTERED APPEAR HERE]"/> tag within the head section of the page.
The meta keywords tag should be used to insert any relevant keywords into the meta tag, each keyword should be comma-separated.
The meta keywords tag is not visible to users. Completing this field is optional.
Canonical URL
The canonical url field requires a simple string input. This should be either a relative or fully qualified url.
The url string entered is injected into a meta link tag (setting the href value) <link rel="canonical" href="[URL IS INSERTED HERE]"/>.
Canonical URL tags are used to prevent issues with duplicate content. By setting a canonical tag, you are telling search engines that the set URL represents the master copy of a page. Practically speaking, the canonical tag tells search engines which version of a URL you want to appear in search results.
A relative canonical tag may look like this <link rel="canonical" href="/about-us" /> The value entered into the canoncial field would be /about-us.
A fully qualified canonical field would look like this <link rel="canonical" href="https://www.mydomain.co.uk/about-us" />, this would be entered into the canonical field as https://www.mydomain.co.uk/about-us.
Setting the canonical field is optional.
Using the Part in Templates
The SEO Part automatically injects the required HTML tags into each pages HEAD section. This part does not require any manual implementation in the Content Type Template.