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 826 posts 1269 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

  • Comment author was deleted

    Jan 03, 2013 @ 19:33

    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 826 posts 1269 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>
  • Comment author was deleted

    Jan 07, 2013 @ 10:17

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

  • Comment author was deleted

    Jan 07, 2013 @ 10:18

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

  • Comment author was deleted

    Jan 07, 2013 @ 10:24

    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 826 posts 1269 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.

  • Comment author was deleted

    Jan 07, 2013 @ 11:15

    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/

Please Sign in or register to post replies

Write your reply to:

Draft