Copied to clipboard

Flag this post as spam?

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

  • blackhawk 313 posts 1367 karma points
    Nov 07, 2017 @ 15:37

    How do Templates work with uSync

    Please forgive me for asking or overlooking a process. I have read the full documention here on uSync

    • I have a fresh installed version of Umbraco 7.6.5 installed via Nuget with the starter theme.
    • I installed uSync via Nuget, version 4.00.760
    • From Visual Studio, I see my ~uSync/data directory
    • I have made no custom configuration adjustments for uSync. Using OOTB settings.
    • When I make modifications to my Document Types in BackOffice, I see changes automatically populating within ~uSync/data/DocumentType
    • But when I go to modify any template in BackOffice (i.e. rename a template, or add a comment, or add an HTML element onto a template) there is no change to template files in ~uSync/data/Template

    Is this a bug? Or perhaps I'm forgetting to adjust a configuration setting to write to templates? I out of ideas on why templates are not getting written to file via uSync.

    Thanks for any tips!

  • Kevin Jump 1769 posts 11367 karma points MVP 4x c-trib
    Nov 07, 2017 @ 15:43
    Kevin Jump


    it's not a bug, but i can see how it might not be what you expect.

    Only a little bit of the template information is stored in the Umbraco Database (the ID and parent) and this is the only bit that uSync will write out to disk in the usync folder.

    The other bit of your template will already be on the disk either in the views or masterpages folder (depending on if you are using MVC or forms).

    When you sync with another site or check stuff into source control you need to include the views / masterpages folder because that is where your template code will be.

  • blackhawk 313 posts 1367 karma points
    Nov 07, 2017 @ 15:47

    awesome! I now see my changes on instance B, based on moving both the uSync and Views folder over.


Please Sign in or register to post replies

Write your reply to: