Copied to clipboard

Flag this post as spam?

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


  • Stephen Dougherty 23 posts 45 karma points
    May 09, 2013 @ 10:18
    Stephen Dougherty
    0

    uBlogsy 3 subfolder cshtml

    Having a problem that cshtml files in a subfolder are not showing up in the umbraco admin backend.

    For example Partials and Macro Partials at /Views/Partials/uBlogsy are not showing yet any cshtml in the Views  folder show up fine.

    I am just dabbling with MVC so please bear with me if I am doing something obviously wrong or expecting functionality that Umbraco MVC does not yet have.

    Thanks

    Stephen

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    May 09, 2013 @ 12:13
    Anthony Dang
    1

    That's an Umbraco backoffice bug. Unfortunately it's been there for many versions. 

    Edit outside of the the backoffice. Visual studio is the best tool for coding.

     

  • Stephen Dougherty 23 posts 45 karma points
    May 09, 2013 @ 12:48
    Stephen Dougherty
    0

    Yes I would usually use Visual Studio but very rarely have to make a change on the fly.

    Thanks for getting back to me on this.

  • Funka! 398 posts 661 karma points
    Dec 13, 2013 @ 04:02
    Funka!
    1

    For posterity:

    Related thread in this same forum : http://our.umbraco.org/projects/starter-kits/ublogsy/ublogsy-bugs/40419-partial-views

    But, that above link is for the MVC version... I also found this question here, which seems like it is for the older WebForms version, so thought I'd comment here too. The symptoms between the two are the same! And the "solution" for both is also mostly the same, if you really want to do this. Here are some notes to help you in your quest:

    WebForms version (as I recall from memory):

    • Physically move all files out of the macroScripts subfolder up into the main macroScripts folder itself.
    • Point and click your way through each Macro (in the Developer section) and update the paths to these macroscripts!
    • There is a small handful of templates and/or other macroscripts that have hardcoded names/paths to the old subfolder in them that you need to update. I prefer to just download the whole folder of these to my local disk, then run a global search/replace on these to update paths, and then re-upload.
    • Success!

    MVC version:

    • Pretty much the same principle, but you don't need to visit the Developer section or muck with macros
    • But instead, this time you're downloading the Views folder, and moving stuff up from "Partials" subfolder instead of the macroScripts folder. (But exact same concept!)
    • Just be sure you really search and replace everyhwere---several more references in v3 than there were in v2 that you'll need to update.
    • Fortunately, we didn't run into any file naming conflicts merging all of these subfolders back into a single folder, since Anthony "name-spaced" the filenames very well (thank you!)

    OK, good luck to anyone reading this. I just worked through this today on the v3 MVC version (didn't take more than 10 minutes or so to "fix") and remembered my notes from v2, so thought I'd share in case it helps anyone else.

Please Sign in or register to post replies

Write your reply to:

Draft