Replies: 6 comments
-
The big difference is
The best example use cases of the two can be seen in TheAgencyTheme, which uses a BagPart to contain all the different content items on the main home page, whereas TheBlogTheme uses a Blog Content Item, with a ListPart of BlogPosts. There is an open issue asking if the ListPart can be made reusable #3469 and I will make a further comment on it shortly. |
Beta Was this translation helpful? Give feedback.
-
Related to the other question about being able to have multiple ListPart. I would suggest to create a new part called "Collection" that would be like ListPart but could be used multiple times. Because ListPart ,as it can only be selected once, can provide a nicer Admin experience, like when displaying a Blog (Admin Detail view) it shows its items. Not sure how the editor will work then to add new items. Popups are hard as it needs validation. We did it in O1 it was very hard to maintain. And only being able to select existing is what the Content Picker field is. |
Beta Was this translation helpful? Give feedback.
-
"It's a List" is not the same as "I have Lists" hence the distinction between ListPart and CollectionPart. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
That's an interesting way to represent them, but I would make it optional (type-part settings). |
Beta Was this translation helpful? Give feedback.
-
See the relevant docs page: https://docs.orchardcore.net/en/latest/topics/content-relationships/ |
Beta Was this translation helpful? Give feedback.
-
Common:
Differences:
What else do I miss?
Beta Was this translation helpful? Give feedback.
All reactions