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?
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.
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/
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
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
Hi Tim
I tried this and it didnt work!
Yeah sorry doesn't work with the razor macro forgot about that, looking into the GUID problem now
I guess the issue is when you are working with multiple environments? And deploying accross those?
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/
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.
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/
is working on a reply...
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.