Marketpath CMS Developer Tutorial Series

Basic Site Components

Last Updated 3/8/2018

This lesson reviews the basic site components of Marketpath CMS and their associated hierarchy - templates, stylesheets, javascript, pages, and entities.

Marketpath CMS was built to make development as straightforward as possible. When you build a non-cms site it is comprised of standard website elements - pages, templates, style sheets, and Javascript. Marketpath CMS is essentially the same, with a few exceptions. Pages (which represent unique URL's) are tied to a data object that we generically call an Entity. Every page on the site is derived from a single entity, whether that entity is an article, a blog post, a calendar entry, an author, or one of several other object types. 


Every entity can have one URL and therefore only one Page Template. Page templates control the layout and content that appears on a page and can include stylesheets and Javascript links.

Page templates can also include Partial Templates which define reusable blocks of HTML markup. In most cases, page templates will include header and footer partial templates at the beginning and end, respectively, like in the code below. This allows you to separate concerns.

{% include "header" %}
<div class="main-page-body">
      {{ entity.content_html }}
{% include "footer" %}

Other partial templates may be built for image galleries, navigation, forms, calls-to-action, author snippets, cards, and much more.


On the Preview Site and Live Site, all of these components (i.e. templates, stylesheet links, Javascript links, etc) are rendered on-demand and available immediately after being published. The Marketpath CMS rendering engine is strategically optimized to parse and build pages extremely fast.

---- End of Lesson ----

Question? Correction?

Let's work together to make our documentation as helpful as possible.

What is your name? 
What is your email address?