Sync templates created in Visual Studio to database
Hi,
I'm running an Umbraco 7.1.4 installation through Visual Studio 2012.
When i create a template through visual studio (i.e. right click views folder -> new view) it does not show up through the Umbraco UI. From investigation it seems this is because it is not synced to the database (cmsTemplate table to be exact).
To resolve the issue i can go into the UI, Settings -> Template -> Create and give it the same name, and the code pulls through, and then upon saving the design field in the database is also populated. This takes time however.
OR
Create the template through the UI, then include it in my visual studio project and edit. (again, this is time consuming).
How can I get VS, the UI and the database to sync correctly in reguards to this? i.e. create a template through visual studio, and have the template show up in the ui, and have the database field automatically populated.
Thanks for any help in advance. Please ask if i've been unclear on anything or if you need additional information.
You're question makes sense. I've always just created templates in Umbraco's back office and then open them in Visual Studio. It would be cool to just create the templates in Visual Studio but it's only a minor inconvenience to create them in the back office first.
Sync templates created in Visual Studio to database
Hi,
I'm running an Umbraco 7.1.4 installation through Visual Studio 2012.
When i create a template through visual studio (i.e. right click views folder -> new view) it does not show up through the Umbraco UI. From investigation it seems this is because it is not synced to the database (cmsTemplate table to be exact).
To resolve the issue i can go into the UI, Settings -> Template -> Create and give it the same name, and the code pulls through, and then upon saving the design field in the database is also populated. This takes time however.
OR
Create the template through the UI, then include it in my visual studio project and edit. (again, this is time consuming).
How can I get VS, the UI and the database to sync correctly in reguards to this? i.e. create a template through visual studio, and have the template show up in the ui, and have the database field automatically populated.
Thanks for any help in advance. Please ask if i've been unclear on anything or if you need additional information.
Luke.
Luke,
You're question makes sense. I've always just created templates in Umbraco's back office and then open them in Visual Studio. It would be cool to just create the templates in Visual Studio but it's only a minor inconvenience to create them in the back office first.
Alex
Bugger. One for the umbraco developers then haha.
Thanks for the help.
Luke.
is working on a reply...