Created by: michael Date: 08/07/2020

Introduction

This section describes how the PageHtml Part is used within the CMS in order to add blocks of HTML Code, specific to each content item to the page.

The PageHtml part is used to inject custom HTML Code into specific pages and is encoporated into the Content Type Template using handlebars code.

Content Type Settings

There are no Content Type Settings used for the PageHtml Part. Multiple PageHtml parts can be added to each Content Type as required.

Content Item Settings

For every PageHtml part that is added to the Content Type a corresponding HTML code editing window (as shown below) is added to the content item.

HTML code can be typed directly into the text area, this code is then inserted as raw HTML and displayed on the page. Code entered into PageHtml parts can use any shared/common CSS styling applied to the website (referenced by classes or ids), Additional CSS style blocks or inline CSS can also be used although this is not recommended.

Using the Part in Templates

Each PageHtml part needs to be included within the Content Type Template in order for it to be added to the page.

This is achieved using handlebars tags, for example, if the PageHtml part is named 'HTMLSection1' as per the screenshot above, the corresponding handlebars code would be {{{HTMLSection1.html}}}.