Modular Merchant
QuickCode™ Glossary
QuickCode Tag Glossary Home
See also:
Knowledge Base
Articles in this category:

























































UNIVERSAL-CONTENT Updated: 09/12/2011

A Template Package contains roughly 35 different templates, one for each section of the store's administration area. There are templates to control the design of the product pages, checkout pages, customer Account Area pages, etc.

However, new to MMv4 is the option to make an entire Template Package that consists of just one single template!
All MMv4 Template Packages must contain, at a minimum, a template titled universal.template.php. This universal template will be used in the place of any other template excluded from the Template Package.
For example, the Store Home page uses a template named storefront.template.php. It is the template that is used by the home page of the store's public shopping area. If a Template Package does not include the storefront.template.php template, then, when a customer view's the store's home page, the contents of the universal.template.php template will automatically be used to render the store's home page instead.

The universal template may contain any HTML content, just like any other template. However, it must also always include the {UNIVERSAL-CONTENT} QuickCode Tag. The location of the {UNIVERSAL-CONTENT} QuickCode Tag is up to the designer of the template, but it must be present in the universal template somewhere. This QuickCode Tag will be translated into the default content for the storefront page being viewed.

The universal templating system allows an entire Template Package to be created using just one template. One, some, or all of the other 35 templates can also be included in any Template Package. If a storefront page's corresponding template file is present in the Template Package, then it will be used. Otherwise, the universal.template.php template and its {UNIVERSAL-CONTENT} QuickCode Tag will be used in its place.

Source Code Source Code Updated:
When a web page using a template that contains this QuickCode Tag is viewed in the storefront, the UNIVERSAL-CONTENT QuickCode Tag is changed into the source code below prior to the web page being displayed.
  Copyright © 2001 - 2024 Modular Merchant™. All rights reserved.
Modular Merchant | Privacy Policy | Legal Statement | Terms of Service | Contact Us | Site Map