Hi @Lombiq, I need to add next and previous button in Blog Post Detail. Can you please help me how can I do it ? I am using latest version of Orchard Core
Hi Ankit, you'll need to write a bit of Razor/Liquid to fetch the next/previous blog posts in a template and show links to them. Would you ask this on the discussion board? github.com/OrchardCMS/OrchardCore/discussions There we can include code snippets too.
Blog uses ListPart to provide the container behavior, see: docs.orchardcore.net/en/latest/docs/reference/modules/Lists/ Technically it's the Blog Posts that reference the Blog though.
@@Lombiq Not sure if this is a proper case for a CMS, let's say I have a content type House in which has a Master Room part in which has a Bathroom part, a Bathroom part can also be a part in House type, thus we need the ability to have Master Room part to include another content part (Bathroom).
@@bochenlin7875 In this case, Bathroom would perhaps rather be a Content Field, not Part. These can be attached in any number to a given Content Part, and to multiple parts too, all under different names. Our Training Demo has an example of Fields too: github.com/Lombiq/Orchard-Training-Demo-Module