Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Luke 4 posts 24 karma points
    Jul 17, 2014 @ 03:54
    Luke
    0

    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.

  • Alex Lindgren 159 posts 356 karma points
    Jul 17, 2014 @ 04:31
    Alex Lindgren
    0

    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

  • Luke 4 posts 24 karma points
    Jul 18, 2014 @ 01:11
    Luke
    0

    Bugger. One for the umbraco developers then haha.

    Thanks for the help.

    Luke.

Please Sign in or register to post replies

Write your reply to:

Draft