Тёмный

Orchard Core's content model: content types, parts, and fields - Dojo Course 3 (03) 

Lombiq
Подписаться 2 тыс.
Просмотров 8 тыс.
50% 1

Опубликовано:

 

12 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 13   
@FraserConnolly
@FraserConnolly 3 года назад
Thanks, that was really helpful. I hadn't understood why a part with the same name as the content-type is automatically made, now I do.
@Lombiq
@Lombiq 3 года назад
Yeah that one is tricky :).
@dimplekashyap1
@dimplekashyap1 2 года назад
well explained
@DreamlandStories07
@DreamlandStories07 3 года назад
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
@Lombiq
@Lombiq 3 года назад
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.
@owengunter506
@owengunter506 2 года назад
A Blog "references" the Blog Post; how is that relationship created/defined. I can't see a way to do that
@Lombiq
@Lombiq 2 года назад
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.
@bochenlin7875
@bochenlin7875 Год назад
Can a content part be made from other content parts?
@Lombiq
@Lombiq Год назад
Not really. What would you like to achieve? Content parts can otherwise be combined in a lot of ways.
@bochenlin7875
@bochenlin7875 Год назад
@@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).
@Lombiq
@Lombiq Год назад
@@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
@michaelwplde
@michaelwplde 2 года назад
5:15 Listable... Huh? I do not understand. i.e. difference between Blog and Blog Post? i.e. Blog Post is 'listable' (?).
@Lombiq
@Lombiq 2 года назад
See the docs on List Part here: docs.orchardcore.net/en/latest/docs/reference/modules/Lists/