Skip to the content

How to Create and Add a second Template to a Doc Type

Hi Guys,

As you can tell from the title this article will teach you how to add a second template to a already existing doc type.

* Reasons you may want to do this: Lets say you have a staff profile section with each staff member having their own details page. But now you want the Higher up staffs pages to display the same content as every other page but to look differently when viewing the page. This is where you will add a second template to your Doc Type.


Now lets show you how this is done

Step 1. Log into your Umbraco 8 back office.

Step 2. Navigate to the templates section. (Settings>Templating>Templates) and right click on the Templates folder.(or Click the 3 dots to the right of the folder) and Click "Create".

Step 3. Give your template a Name and add your HTML in your desired fashion. And then Click "Save".


Now you need to add your template to your doc type

Step 1. Navigate to the Doc Type you would like to add your second template to. (Settings>Document Types>**YOURDOCTYPE**)

Step 2. Click Templates in the top right corner ( or hit the number 4 key ).

Step 3. Click "Choose Extra Template" and select the template you have just created. And then Hit "Save".


Next you need to create a new instance or your Doc Type and assign your new Template.

(I will add my Doctype and Template as a menu item in the main nav bar on the home page)

Step 1. Click on the content section from your Umbraco 8 Menu.

Step 2. Right Click on the home Content Tree item. ( or click the 3 dots to the right of the tree item).

Step 3. Click "Create" and select the Doc Type you have assigned your second template.

Step 4. Fill in all the content property sections and hit "Save and Publish".

Step 5. Click the info tab in the top right of your screen. ( or hit the number 2 key ).

Step 6. To the right of your screen you will see a section called template with a drop down box. Fro this drop down Select your new template and hit "Save". 

Step 7. Reload your site and Navigate to your new page with your new template. If everything has been done correctly your new template should be displayed with all the same content as your original Doc Type template but laid out in your new Templates design.

About the author

Nathan Reece

.Net MVC Developer | Umbraco Novice

Hey Guys,

I'm an New Developer with a passion for coding. I absolutely love working with Umbraco CMS and appreciate the Umbraco community even more.

I've got 3 years+ .Net experience and 5 years+ experience working in the Web Develepment industry, both coding and marketing job websites. I wanted to use my skills to help give something back to this awesome community and seems like the right place to do just that.

Follow me on social media

If you're an Umbraco professional, partner, employer, recruiter or a passionate Umbraco community builder then I'm more than happy to hear from you. Follow me on my social media channels and please reach out if you have any needs, want help or consultation with anything Umbraco related or just want a general chat.

comments powered by Disqus

Blog Filter

How we can help?

Need help with an Umbraco project?

Need help with a project but not too sure who to approach? Send us your project brief and budget. We will provide a free consultation and can help you gather quotes from the best and most suitable freelancers or agencies.

Looking to hire an Umbraco Professional?

Have you got job vacancy and want to hire an Umbraco professional? Post a job on our website for free. Alternatively let us know your requirements and we will send suitable prospects your way.

Claim your free profile!

Are you an Umbraco Freelance Developer or Umbraco partner that wants to advertise on our site? If you work with Umbraco or registered as an Umbraco partner then you can create a profile for free.

Let's build the Umbraco Community

We're big on building the Umbraco community and we think you guys are awesome! If there's anyway at all we can help then please reach out.