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.
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.
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
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.
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.
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):
MVC version:
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.
is working on a reply...