-
Notifications
You must be signed in to change notification settings - Fork 25.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Pages/Shared layout in intro to RP #7336
Comments
Feedback on a related issue from Slack chat @ctolkien, @poke, and @TheSamsterZA ... RE: Mixing MVC and RP in the same app, the RP guidance implies not to use a common layout page. The MVC guidance is a bit more helpful in regard to specifying the path in _ViewStart.cshtml, which implies that the layout can be anywhere (e.g., in Pages/Shared). poke
sameer.singh
poke
chadt
poke
|
@rynowak what's the story on MVC and RP sharing layout? |
@danroth27 @davidfowl @rynowak what's the story on MVC and RP sharing layout? This question comes up frequently. |
Razor Pages will pickup the layout from the |
... and MVC will pick up a layout from the Pages/Shared folder? If so, should we recommend one place or the other in a mixed app, or should we say that it's up to the dev to decide based on their personal preference? |
No I don't believe so. @pranavkm could you please confirm? |
Test case 1: Default MVC template with a Layout from Test case 2: Default Razor Page template with a Layout from So apparently designs are shared between both Razor pages and MVC. If there’s both a layout in |
Ty @poke ... case of 🍺 to u for that one! That's what we needed to know (we'd have looked if only we had the time to check 🏃🏃🏃😅). |
The menu layout is implemented in the Pages/Shared/_Layout.cshtml file. |
See #7200
The text was updated successfully, but these errors were encountered: