Reputation: 13620
When I create a new template (.cshtml) in the Views folder of my Visual Studio solution it is not showing up in the backoffice. If I create a template from the backoffice a file is created in the Views folder that I then have to add to VS as a exciting file - why don't the backoffice show the template if I create one from Visual Studio? I've tried rebuilding the project.
Upvotes: 1
Views: 2130
Reputation: 1784
You can do it in 2 ways:
As ProNation says, all templates needs a db reference.
Upvotes: 2
Reputation: 3692
Views/templates work differently to some of the other files like scripts and CSS because they require a reference in the database to allow you to associate them with your doctypes.
Upvotes: 1