OrchardCore
OrchardCore copied to clipboard
Question: Add existing content item to list?
Is a feature coming where we can add an existing content item to list?
Would be cool addition. With a link to open a popup and select an item from a search box. Like the content item picker.
yes, I found my self adding some items to the list then I decided to remove them. Then I changed my mind and wanted to re-add them but I had no ability to do so.
It's been almost 4 years on this. Anybody know if this functionality exists yet?
Which list to do you refer to?
THE list ;) ListPart (e.g. Blog -> Blog Posts)
Believe it or not, I thought it was a ListPart :) so the feature is to add existing items to a list. I assume if the ListPart
of type T all the T content items should be listed, or the current behavior is different?
Correct. I know there is a way to do this programmatically like so:
contentItem.Weld<ContainedPart>(); contentItem.Alter<ContainedPart>(x => x.ListContentItemId = "id-of-parent");
But there is no way to do this in the Orchard Core Admin UI. Once you create a content item it cannot be added to an existing list, you can presently only create new content items in a list part.
@Registeel can you create a PR for this?
@Registeel can you create a PR for this?
I haven't built the functionality for this. It seems like a fair size change and I'm not familiar enough with the code base yet. I'm still just using it for a project. Maybe look into developing this when I have some downtime if nobody else is working on it.
It's your if no one take it :)
Issue for the opposite: https://github.com/OrchardCMS/OrchardCore/issues/3667. So, let's keep these under one issue, there.