Copied to clipboard

Flag this post as spam?

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


  • Kenneth Pedersen 1 post 21 karma points
    Feb 11, 2015 @ 17:21
    Kenneth Pedersen
    0

    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

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Feb 11, 2015 @ 21:53
    Jan Skovgaard
    0

    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

  • Kenneth Pedersen 1 post 21 karma points
    Feb 12, 2015 @ 09:55
    Kenneth Pedersen
    0

    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.

Please Sign in or register to post replies

Write your reply to:

Draft