Copied to clipboard

Flag this post as spam?

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


  • vcamargo 27 posts 98 karma points
    Feb 01, 2016 @ 00:54
    vcamargo
    0

    How to create document types in Visual Studio?

    Or it is possible only in the back office?

  • Nicholas Westby 2054 posts 7104 karma points c-trib
    Feb 01, 2016 @ 02:20
    Nicholas Westby
    1

    If you are talking about creating document types programmatically, that is covered here: https://our.umbraco.org/forum/developers/api-questions/11210-Creating-a-document-type-property-programatically

  • Samira 113 posts 452 karma points
    Feb 05, 2016 @ 11:37
  • Barry Fogarty 493 posts 1129 karma points
    Feb 05, 2016 @ 12:02
    Barry Fogarty
    1

    If you are simply looking to source-control your doctypes, check out uSync which serializes the document types from Umbraco to disk.

    If you are looking to have strongly typed models that represent your doctypes in code, check out the built in Models Builder and Ditto.

    In general, its advisable to use the backoffice to create your doctypes. If you let us know the reason you want to create them in code, we might be able help with your specific case a bit more.

  • How Do I Delete My Account? 68 posts 433 karma points
    Feb 05, 2016 @ 13:01
    How Do I Delete My Account?
    1

    UCreate got an option for that, however. I don't recommend it because it isn't up to date on all things, and sometimes it constructors fails to initialize the umbraco page.

    What I DO recommend is creating it in back office and then use uSync package to transfer it between installations.

    If it's strongly typed models you're after there's a package that creates strongly typed models after you've created the doctypes backend. I can't recall the package's name though.

    However. I've search far and long for this and the best solution is uSync + package which name I've forgot.

  • vcamargo 27 posts 98 karma points
    Feb 11, 2016 @ 12:19
    vcamargo
    0

    Thank you all, I'll definitely try this. ;-)

    BTW I was trying to accomplish that with no other packages.

  • Steve Morgan 1350 posts 4460 karma points c-trib
    Feb 11, 2016 @ 12:35
    Steve Morgan
    0

    Worth a view!

    https://www.youtube.com/watch?v=Hr1irQ0h5J8

    About 5 mins in to skip the Pete D one-man standup intro (not that you should!).

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies