Displaying information for "next" and "previous" blog post, can it be done better?
I am creating a custom blog theme, and in a blog post, links for the next and previous blog posts are shown at the bottom. It was a bit fiddly to get it to work but it is working as intended now. To get it to work I changed the view model from Articulate.Models.PostModel to Umbraco.Web.Mvc.UmbracoViewPage<Articulate.Models.PostModel>
Though I can't shake the feeling that it can be done more "correct" so to speak, for example I really want to get the next blog post as an articulate blog post object, so I have access to the Author objects and so on. Can this be made better?
Displaying information for "next" and "previous" blog post, can it be done better?
I am creating a custom blog theme, and in a blog post, links for the next and previous blog posts are shown at the bottom. It was a bit fiddly to get it to work but it is working as intended now. To get it to work I changed the view model from
Articulate.Models.PostModel
toUmbraco.Web.Mvc.UmbracoViewPage<Articulate.Models.PostModel>
Though I can't shake the feeling that it can be done more "correct" so to speak, for example I really want to get the next blog post as an articulate blog post object, so I have access to the Author objects and so on. Can this be made better?
is working on a reply...