Let us create a very simple web template that displays logged in user’s name and displays whether the user is in administrator role or not.
The template uses Liquid language
The Web template can be used to define Page Template.
Page template can be of type Web Template or Redirect. Redirect types would be pointing to actual physical aspx page inside the portal.
Now as we have our custom page template defined we can create a new child page in our portal using this new page template.
As we have Use Website Header and Footer checked the page takes it from the web site.
This is how the page renders with our new template
If we uncheck Use Website Header and Footer checkbox, the page renders with only the content (source) defined within the web template.
Apart from being used to define page template, web template can be inserted into the page through editing the copy of the page.
- Click on Edit
- Select Insert Template
- Select the Hello World Template (it also displays the preview) and click Ok.
- Click on Save
- This adds our custom web template in the page.
This was a very basic example, please check the below link that contains all the details and real world examples.
Hope it helps..