Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

Update default Razor search paths to include ~/[PagesRoot]/Shared #6604

Closed
DamianEdwards opened this issue Jul 28, 2017 · 1 comment
Closed

Comments

@DamianEdwards
Copy link
Member

Based on feedback, I'd like to update the default Razor search paths.

We should add ~/[PagesRoot]/Shared/ to the search paths for Layouts, Partials, and Field Templates. This should be true whether searching from the context of a rendered Page or View. When searching from a Page, this path should be before ~/Views/Shared/, and when searching from a View it should be after ~/Views/Shared/.

@DamianEdwards DamianEdwards added this to the 2.1.0 milestone Jul 28, 2017
@DamianEdwards DamianEdwards changed the title Update default Razor search paths Update default Razor search paths to include ~/[PagesRoot]/Shared Jul 28, 2017
@hishamco
Copy link
Contributor

Happy to heard that, I faced this issue long time back in my Bloggy repo, when I blogged about Theming support in RazorPages

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants