Editing & Creating Layout Templates - Mura Docs v6

Editing & Creating Layout Templates

If you need to edit or create new layout templates, there are a few things to keep in mind.

Directories

The layout templates must be kept in the templates directory ({context}/{SiteID}/includes/themes/{ThemeName}/templates/) in order for Mura to find and display them as options when editing a page in Mura (go to Site Manager, choose a page to edit, then choose the 'Advanced' tab). Templates are applied to pages via the 'Layout Template' select menu.

To allow the editing of certain aspects of templates in a single place, the templates all pull in additional include files (such as headers and footers) from the 'inc' directory. This is located inside the 'templates' directory ({context}/{SiteID}/includes/themes/{ThemeName}/templates/inc/). It is important to keep these include files in the 'inc' directory and not in the 'templates' directory in order to keep them from showing up in the 'Layout Template' dropdown box described above.

Include Files in the /inc/ Directory

An overview of include files is provided here but we'll discuss the content of each of these files in the following section.

html_head.cfm

The html_head.cfm include contains the <head> of what will become your rendered html page. It includes everything you'd expect to find here and a little more.

header.cfm

This is a typical page header with an H1 for the site title, a basic search form, and top level navigation (#navPrimary)

footer.cfm

A basic default footer to get you started.