If I change the alias / name of the doc type that the data type is based on, the content no longer works. If I then change it back to the original name, it works again.
I expected the stuff to follow the doc type regardless of the alias or name. I am not sure if you meant for this or not but it is something that I though I would point out just in case it was something that you wanted to handle.
Currently we used the DocType's GUID to identify it, so it should work with DocType renames, (at least that's how we designed it).
Hmmm... we'll look into it.
Although, heads-up - a pull-request has been made to add support for multiple DocTypes - which I know swaps the GUID for the Alias name... so this may become a problem again.
Curious question, realistically how often do you rename DocTypes? (post-development phase)
I usually rename doctypes during the initial build if at all.
The project I am working on though is a multi tennant site and so each time a new site template is asked for, I try and reuse some doctypes. It isn't huge but it is an expectation that I had which was a little scary until I tried to rename it back and it worked.
Rename Doc Type Issue
If I change the alias / name of the doc type that the data type is based on, the content no longer works. If I then change it back to the original name, it works again. I expected the stuff to follow the doc type regardless of the alias or name. I am not sure if you meant for this or not but it is something that I though I would point out just in case it was something that you wanted to handle.
Hi Ben,
Currently we used the DocType's GUID to identify it, so it should work with DocType renames, (at least that's how we designed it). Hmmm... we'll look into it.
Although, heads-up - a pull-request has been made to add support for multiple DocTypes - which I know swaps the GUID for the Alias name... so this may become a problem again.
Curious question, realistically how often do you rename DocTypes? (post-development phase)
Thanks,
- Lee
I usually rename doctypes during the initial build if at all. The project I am working on though is a multi tennant site and so each time a new site template is asked for, I try and reuse some doctypes. It isn't huge but it is an expectation that I had which was a little scary until I tried to rename it back and it worked.
is working on a reply...