Copied to clipboard

Flag this post as spam?

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


  • Murray Roke 452 posts 839 karma points c-trib
    Sep 09, 2014 @ 05:17
    Murray Roke
    0

    def.config and working from XML

    Hi
    I am trying out uSync I'd like be able to work with a text editor for editing Doctypes etc.
    However, here's some issues I'm having:

    • All the files are called 'def.config' which makes finding the right tab/file in your text editor a pain.
    • I don't see how to create some elements, eg: tabs (you need an ID first? scratch taht... it seems I can put any number in the ID and next export it corrects it?)
    • You have to know the names and guid's for datatypes.
    • I have to remember to delete the 'hash' whenever the def.config is regenerated.
    • Is re-naming possible? if so how?

    Cheers.
    Murray.

  • Ismail Mayat 4274 posts 9213 karma points MVP 2x admin c-trib
    Sep 09, 2014 @ 10:23
    Ismail Mayat
    0

    Murray,

    Are you trying to effectlively mimic a code first approach with usync by using an editor directly? Here at cogworks we have setup where we use umbraco to create the doctypes / datatypes etc that writes out the usync xml files which we check into source control.  This gives us version control and also allows automated deployment to different environments.  Its not really a code first tool per se.

    Regards

    Ismail

  • Kevin Jump 1434 posts 9178 karma points MVP 3x c-trib
    Sep 09, 2014 @ 10:43
    Kevin Jump
    0

    Hi Murray

    As Ismail says uSync isn't really a code first thing - the usync files are generated when you create the doctypes/datatypes etc in the Umbraco back end, its really for source control and coping the basic umbraco settings between installations.

    Umbraco CodeGen is a separate project that puts some codefirst stuff into uSync, and there is also uSitebuilder which focuses on code first development. I don't use either so can't really say if they work / are good - this is the last thing i read on it. https://offroadcode.com/blog/1839/the-code-first-in-umbraco-deadend/

  • Murray Roke 452 posts 839 karma points c-trib
    Sep 09, 2014 @ 23:48
    Murray Roke
    0

    Hi guys,
    No, It's not really code first I want. I've been down the uSiteBuilder track, and the offroad code blog resonated with me which is one of the reasons I started looking for alternatives in the first place.

    Also have a look here to see some of my other investigations: http://our.umbraco.org/forum/developers/api-questions/56391-Fluent-Migrator-style-Migrations-for-Umbraco

    BUT, one of the things we liked about uSiteBuilder was the ability to use a text editor to manipulate doctypes, eg, copying large number of properties from one doctype to another, or just pop in to change a datatype or grab a doctype from our library to copy into our project site (we tend to have a lot of small to medium sites, as well as a few large ones)

    I found we can achieve most of these scenarios via editing the XML, great :-) but I was wondering about those few cases where I was finding it tricky.

Please Sign in or register to post replies

Write your reply to:

Draft