Here's a summary of the key steps:
Recipe Listing Page
New RecipeListingPageController created, extending
PageControllerwith theRecipeListingPagemodel.View:
index.cshtmlunder Views/RecipeListingPage.Displays page title and iterates through child recipe pages, showing links and images.
Includes a null check to show “No recipes” if none exist.
Recipe Page
Existing RecipePageController passes
RecipePagemodel to the view.View:
index.cshtmldisplays page name and description.Uses
Html.Propertyto render ingredient and step blocks, with null checks for safety.
Homepage
StartPageController passes
StartPagemodel to the view.View:
index.cshtmlshows site title and description only.
Standard Page
New StandardPageController created, extending
PageControllerwith theStandardPagemodel.View:
index.cshtmlunder Views/StandardPage.Displays page name and renders
MainBodycontent usingHtml.Raw.Uses a Property to render content from
MainContentArea, supporting nested blocks.
.png)
Comments
Post a Comment