Creating a Partial View with a name that already exists overrides the existing one
I was trying to create a new "Partial View folder", and it says "use / to make folders" – so I was trying to create a folder like "name/" and "/name", which doesn't work, since it's apparently "folder-name/file-name".
Succesfully creating my folder, I was going back to my file which I wanted to put in that folder, and the file was empty (except for @inherits Umbraco.Web.Mvc.UmbracoTemplatePage). The folder I was trying to create had the same name as the file that is empty.
I didn't keep a backup of the file, so I guess it's gone, or does Umbraco keep a backup of it somewhere? Like it's possible to rollback in the content section, but I guess it's not the case for Partial Views, right?
I'm afraid the changes are lost unless you're using a control versioning system like git or mercurial where you can easily rollback between different commits etc.
Umbraco does not keep track of the files you're creating as they exists on the disk and are referenced in the database.
It does answer my question about the backup, but since it took about 2 hours to recreate, I didn't wait for an answer (since I wasn't expecting there to be a backup).
I am however still interested in knowing if this is a bug, or if this is working as intended? I just tried creating a js file with a name that already exists, and it just seems to select the file rather than creating a new empty one.
Creating a Partial View with a name that already exists overrides the existing one
I was trying to create a new "Partial View folder", and it says "use / to make folders" – so I was trying to create a folder like "name/" and "/name", which doesn't work, since it's apparently "folder-name/file-name".
Succesfully creating my folder, I was going back to my file which I wanted to put in that folder, and the file was empty (except for @inherits Umbraco.Web.Mvc.UmbracoTemplatePage). The folder I was trying to create had the same name as the file that is empty.
I didn't keep a backup of the file, so I guess it's gone, or does Umbraco keep a backup of it somewhere? Like it's possible to rollback in the content section, but I guess it's not the case for Partial Views, right?
Version 7.2.1 btw
Hi Kenneth and welcome to our :)
I'm afraid the changes are lost unless you're using a control versioning system like git or mercurial where you can easily rollback between different commits etc.
Umbraco does not keep track of the files you're creating as they exists on the disk and are referenced in the database.
Hope this answers your question.
/Jan
Hi, and thanks :-)
It does answer my question about the backup, but since it took about 2 hours to recreate, I didn't wait for an answer (since I wasn't expecting there to be a backup).
I am however still interested in knowing if this is a bug, or if this is working as intended?
I just tried creating a js file with a name that already exists, and it just seems to select the file rather than creating a new empty one.
is working on a reply...