Overrides

# Overriding layouts

All layout of the main template is concentrated in files in the /layouts folder in the root of the template folder. The names of all files in this folder must match the file mask template.*.php, where * is any arbitrary name consisting of Latin characters, numbers, a minus sign (), and an underscore (_). Periods and spaces are not allowed. This is the name that will be used as the layer name in the list of overridden layouts in the template parameter Files layouts. Uppercase characters are allowed, but are not recommended.

The distribution comes with only one markup file: template.default-original.php. This file is a system file and will be overwritten when the template is updated.

IMPORTANT!
It is strongly recommended that you do not edit the file template.default-original.php in order to avoid the loss of your markup when you update the template!

When you first install the template, the file template.default-original.php will be copied to the file template.default.php, which is the default layout for the entire site and applies to all pages of the site to which no other layout is assigned.

When you update the template, copy the file template.default-original.php to the file template.default.php only happens when the latter is physically absent.

If you are installing or updating a template copy of the file has occurred and the file template.default.php is missing, you need to copy it manually.

Neither the default-original layout nor the default layout appear in the list of overridden layouts in the Files layouts parameter because they are basic.

The entire layout file contains all the markup inside <body> (the <body> tag itself is located in the index.php file at the root of the template).

To override the layout, you need to manually copy the file template.default.php and change the layout name default to your own, according to the above rule.

In the redefined layout, you can create any layout that is convenient for you.

If you delete a layout file, you must resave the template settings. If the file assigned to the current page layout is not found, the default layout will be applied. If the default layout is not found for any reason, the default-original layout will be applied, which is highly undesirable.


# Overriding section and module wrapper styles

Styles of sections and shims are installed on the modules tab of the Sections in the template parameters.

Each set of parameters is linked to a specific page of the site through the menu items specified in the set. By default, no parameter set is defined. It is strongly recommended that you create a parameter set that is not bound to any menu item to apply it by default.

The parameter sets are not bound to the overridden template layouts in any way: you can create the same style for the same section for different pages of the site, to which different layouts are linked, and different styles for the same section on different pages of the site, tied to the same layout.

Each parameter for the set is described in detail on the page Sections.


The menu is displayed by the standard Joomla! module mod_menu.

In the module is provided with several overrides of the template module:

  • default – vertical menu output uk-nav
  • navbar – main horizontal menu output uk-navbar
  • subnav – auxiliary horizontal menu output uk-subnav

All you need to do is select the appropriate alternative layout from the main site template in the module parameters and, if necessary, specify the module class suffix. For navbar advanced settings are also available in the settings of the main site template.


# Overriding the entire template

You can override the entire template by copying the master3 folder and renaming it. In the templateDetails file.xml at the root of the new template copy folder, you need to change the <name> parameter at the beginning of the file, specifying the name of the template folder. More rule do not need anything, the template is fully ready for operation after installing it in the admin panel of the website page of the Extensions → extensions Manager → Find.

You also need to make a copy of the language files located in the /language/en-GB/ folder, renaming the files as follows:

  • en-GB.tpl_master3.ini => en-GB.tpl_{newtemplatename}.ini
  • en-GB.tpl_master3.sys.ini => en-GB.tpl_{newtemplatename}.sys.ini

In the new language file en-GB.tpl_{newtemplatename}.sys.ini must assign the TPL_MASTER3 variable to the value of the new template name.


# List of overrides extensions

In the template override staff extensions shipped in Joomla!3.

Components:

  • com_contact
  • com_content
  • com_privacy
  • com_search
  • com_tags
  • com_users
  • com_wrapper

Modules:

  • mod_articles_archive
  • mod_articles_categories
  • mod_articles_category
  • mod_articles_latest
  • mod_articles_news
  • mod_articles_popular
  • mod_banners
  • mod_breadcrumbs
  • mod_custom
  • mod_languages
  • mod_login
  • mod_menu
  • mod_related_items
  • mod_search
  • mod_tags_popular
  • mod_tags_similar
  • mod_wrapper

Plugins:

  • plg_content_­pagenavigation
  • plg_content_­pagebreak
  • plg_content_­vote
  • plg_fields_­calendar
  • plg_fields_­checkboxes
  • plg_fields_­color
  • plg_fields_­editor
  • plg_fields_­imagelist
  • plg_fields_­list
  • plg_fields_­media
  • plg_fields_­radio
  • plg_fields_­repeatable
  • plg_fields_­sql
  • plg_fields_­textarea
  • plg_fields_­url
  • plg_fields_­user

Layouts:

  • com_contact
  • com_fields
  • com_users
  • joomla/content
  • joomla/error
  • joomla/form
  • joomla/pagination
  • joomla/system
  • libraries
  • plugins/system
  • plugins/user