Skip to content

Latest commit

 

History

History
33 lines (18 loc) · 1.77 KB

managing-templates.md

File metadata and controls

33 lines (18 loc) · 1.77 KB

#Managing templates

Describes how to create/modify templates and describes nested templates

##Creating templates

Templates can be created in 2 ways:

  • They can be automatically created when you create a Document Type when you've selected the checkbox 'Create matching template'
  • They can be created directly in the Template tree in the Settings section

Templates must be created this way because each template requires a reference in the template database table.

##Modifying templates

Templates can be updated in the Umbraco back office by click on a template in the template tree in the Settings section. Once changes have been made to the template, click the save button to save your changes.

Alternatively you can directly edit the template files in an editor of your choice.

  • MVC views are located in the ~/Views/ folder
  • WebForms master pages are located in the ~/Masterpages/ folder

##Nested templates

Templates can be nested which means that you can re-use different parts of your html/markup for other templates. In the template tree you can create a nested template just by selecting 'Create' from the context menu on an existing template.

creating a nested template

You can change a current template's parent template by changing the 'Master template' drop down list.

change a parent template

If you are familiar with WebForms or MVC technologies then you are also able to change how a template is nested by directly modify the template syntax as template nesting does not rely on database entries.