OrchardCore icon indicating copy to clipboard operation
OrchardCore copied to clipboard

Question: Add existing content item to list?

Open JoshTango opened this issue 4 years ago • 10 comments

Is a feature coming where we can add an existing content item to list?

JoshTango avatar Mar 18 '20 17:03 JoshTango

Would be cool addition. With a link to open a popup and select an item from a search box. Like the content item picker.

sebastienros avatar Mar 19 '20 20:03 sebastienros

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.

JoshTango avatar Mar 19 '20 21:03 JoshTango

It's been almost 4 years on this. Anybody know if this functionality exists yet?

Registeel avatar Feb 09 '24 17:02 Registeel

Which list to do you refer to?

hishamco avatar Feb 09 '24 17:02 hishamco

THE list ;) ListPart (e.g. Blog -> Blog Posts)

sebastienros avatar Feb 09 '24 18:02 sebastienros

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?

hishamco avatar Feb 09 '24 19:02 hishamco

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 avatar Feb 09 '24 19:02 Registeel

@Registeel can you create a PR for this?

hishamco avatar Feb 09 '24 19:02 hishamco

@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.

Registeel avatar Feb 09 '24 20:02 Registeel

It's your if no one take it :)

hishamco avatar Feb 09 '24 20:02 hishamco

Issue for the opposite: https://github.com/OrchardCMS/OrchardCore/issues/3667. So, let's keep these under one issue, there.

Piedone avatar May 03 '24 21:05 Piedone