Skip to content

The CMS engine explained

lemonchad edited this page Jan 30, 2014 · 8 revisions

LemonStand provides a powerful, highly customizable CMS engine that makes building your store easy and intuitive. The building blocks of the LemonStand CMS engine consists of Themes, Templates, Pages, Partials and Resources. This section will briefly describe each of these items and how they interact with each other.

##Templating Engine (Twig)

LemonStand uses Twig as its templating engine. Most of the standard Twig functions will work with your LemonStand store. There are also custom functions available that will be explained in more detail later on in this documentation. If you are new to Twig, or would simply like to learn more, please reference the Twig website.

##Themes

Themes

Themes are sets of CMS objects - pages, templates, partials and resources. Themes completely define a store appearance. Each theme contains its own set of CMS objects. For more information on adding a theme, reference the Creating Themes section.

##Templates

Templates

When you create multiple pages with LemonStand you will soon find that you repeat the same HTML code in all pages - the HEAD and BODY tags declarations, page headers and footers. Templates allow you to reuse the common code. Templates act as wrappers for your pages. They usually contain the required HTML tags like HEAD, TITLE and BODY, as well as common blocks for your pages - website navigation, footer, header, sidebar etc. You can have as many templates as you need. For simple websites two templates are usually enough - for the Home page and for inner pages. For more information on working with templates, reference the templates section.

##Pages

Pages

The pages section allows you to create the specific pages that will be available on your LemonStand store. Pages allow you to define items such as the URL for the page and which template the page will render with. The page section is also where you will input the actual code that you want to use on your page, as well as references to any partials you want to be rendered as part of the page output. For more detailed information on creating pages, please reference pages section.

##Partials

Partials

Partials are an important component of LemonStand's template engine. Partials enable you to share code blocks among multiple pages. Code reusing allows you to save much time when you develop complicated websites. For example, you can create a partial for rendering a product list and use this partial on the Category page and on the Home page. Instead of writing the same code in each page, you can just ask LemonStand to render the partial. For more detailed information on working with partials, please reference the partials section.

##Resources

Resources

Every website needs images, CSS and JavaScript files, or resources. LemonStand has an integrated resource manager which allows you to upload, modify and organize resource files. For more detailed information on working with resources, please reference the resources section.