Copied to clipboard

Flag this post as spam?

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


  • Martin Griffiths 791 posts 1189 karma points c-trib
    Jan 03, 2013 @ 18:28
    Martin Griffiths
    0

    Contour CodeFirst GUIDs

    Hi Tim

    I was wondering if I could request a feature which is really starting to become troublesome for me!

    Everytime I recompile my forms, new GUIDs for the forms are generated which means I have to go through every single template and re-insert the forms again! Bit of a nitemare!

    Could you add the ability for devs to explicitly set GUIDs for each form so that it remains constant each time the DLL is deployed?

    Kind regards

    Martin

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Jan 03, 2013 @ 19:33
    Tim Geyssens
    0

    Really it shouldn't do that, I'll check the bug

    You can also set the formid to the name of the form on the form macro in the mean time

  • Martin Griffiths 791 posts 1189 karma points c-trib
    Jan 04, 2013 @ 10:32
    Martin Griffiths
    0

    Hi Tim

    I tried this and it didnt work!

    <umbraco:Macro FormId="Register/PassCode Form" Alias="umbracoContour.RazorRenderForm" runat="server"></umbraco:Macro>
  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Jan 07, 2013 @ 10:17
    Tim Geyssens
    0

    Yeah sorry doesn't work with the razor macro forgot about that, looking into the GUID problem now

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Jan 07, 2013 @ 10:18
    Tim Geyssens
    0

    I guess the issue is when you are working with multiple environments? And deploying accross those?

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Jan 07, 2013 @ 10:24
    Tim Geyssens
    1

    Made it possible to set an id on the form attribute that will be used, would be great if you can test :) http://nightly.umbraco.org/Umbraco%20Contour/3.0.6%20WIP/

  • Martin Griffiths 791 posts 1189 karma points c-trib
    Jan 07, 2013 @ 10:34
    Martin Griffiths
    0

    Hi Tim

    The problem occurs in two ways, let's say you re-arrange the forms slightly, maybe into folders for tidyness. You have to dump the old ones before loading up the new DLL. In this situation it would be nice to lock in the GUID, especially if the code hasn't really changed. 

    And Yes, deployment. from staging to live. GUIDs change here too.

    Martin.

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Jan 07, 2013 @ 11:15
    Tim Geyssens
    1

    Thanks for the extra details, just made some changes that make it possible to set an id on the form attribute and that id will then be used when creating the form/retrieving the form... update is available here http://nightly.umbraco.org/Umbraco%20Contour/3.0.6%20WIP/

  • 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