-
Notifications
You must be signed in to change notification settings - Fork 116
Templates structure
Subrion CMS utilizes Smarty template engine. Smarty ideally fits for separating application logic and presentation.
Subrion templates are based on overrides. You can find all templates that are used on front-end in this folder: [root]/templates/common
The best way to get started with template is to check default Subrion template Kickstart here: https://github.com/intelliants/subrion-template-kickstart
Subrion template *.tpl files should be kept in a separate folder. Folder name contains lowercase Latin letters and underscores only. Examples:
simpla_autos
publish_it
segin
locality
Template file names should only contain Latin letters, digits, and dash. You should not use underscores, slashes, etc. in template filenames. Only .tpl file extension is allowed for template files. Examples:
❌ Incorrect:
view_account.tpl
✅ Correct:
view-account.tpl
The main file for the template is layout.tpl file.
Quickstart
Installation
Adding plugins
Changing front-end template
Creating content
Development
Coding Standards
Naming Conventions
Debug mode
Smarty custom functions
{ia_add_media}
{ia_add_js}
{ia_print_js}
{ia_add_css}
{printImage} (obsolete since 4.1)
{ia_image}
Tutorials
Package installation
Install plugin
Install template
Hybrid Auth Configuration