Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New template in Umbraco, won't show on the Template drop down on content pages

Another Umbraco question, apologies. I've created a new template in the Master templates list, but this template doesn't show up in the Templates drop down list on content pages. I'm wondering if there's something I've missed, or if there's a way to publish this which isn't immediately obvious.

Any help appreciated.

like image 967
dmc Avatar asked Dec 08 '22 20:12

dmc


1 Answers

You need to select the template as an allowed template type for the Document Type of your pages. Lets say you're page Document Type is called "ContentPage" and you've added a new template called "NewTemplate".

By default you won't be able to select the new template when editing your "ContentPage" pages. You'll need to go into "Settings" in Umbraco, and then expand the "Document Types" folder. You'll see a list of all of the Document Types, select the one you want to use the template on ("ContentPage" in this example).

The first tab that you'll see is the "Info" tab. There's a checkbox list called "Allowed Templates" that you need to select your new template in. Save the Document Type and go back into the Content. You should now be able to select "NewTemplate" as a template on your "ContentPage" pages on the site!

like image 167
Tim Avatar answered Apr 25 '23 18:04

Tim