Created by: michael Date: 08/08/2020

Introduction

This section describes how the PageTitle Part is used within the CMS in order to apply certain text values into the back-end code for each page.

The PageTitle part is used to set the visible title on the page. This is usually the H1 title which is the most important title on the page.

Content Type Settings

There are no Content Type Settings used for the PageTitle part. Multiple PageTitle parts can be added to any Content Type - but we only recommend adding one.

For sub-titles or additional pieces of text content, we recommend using either the Text part or the DataField part.

Content Item Settings

The PageTitle part requires a single text input (as shown below) to set the page title. Typically any text added will be used to generate an H1 tag on the webpage. e.g. <h1>[TEXT ENTERED WILL APPEAR HERE]</h1>, but this entirely depends on the HTML implementation used on the Content Type Template (as explained below).

Using the Part in Templates

The text entered into the PageTitle part on each Content Item can be added to the Content Type Template using handlebars.

The following code is used to add the page title to the template - assuming the PageTitle part is named 'H1Title' {{H1Title.title}}.

Since the PageTitle part is typically used to set the main heading on the page the handlebars code snippet is usually surrounded by a H1 tag e.g. <h1>{{H1Title.title}}</h1> within the template code. It can also be used within other HTML tags such as H2, H3, span, div etc. as required.