OrchardCMS / Orchard

Orchard is a free, open source, community-focused Content Management System built on the ASP.NET MVC platform.
https://orchardcore.net
BSD 3-Clause "New" or "Revised" License
2.38k stars 1.12k forks source link

MediaPart requires the Title part on the media content type #4296

Open orchardbot opened 10 years ago

orchardbot commented 10 years ago

@bleroy created: https://orchard.codeplex.com/workitem/20467

The code for the Title property should check for null on the TitlePart before using it.

orchardbot commented 10 years ago

@sebastienros commented:

Todo: in the OnActivating event for MediaPart attach the TitlePart automatically,

orchardbot commented 10 years ago

@sfmskywalker commented:

ActivatingFilter seems ideal for this, like UserPartHandler is doing:

Filters.Add(new ActivatingFilter<UserPart>("User"));
orchardbot commented 10 years ago

@sfmskywalker commented:

Scratch my previous suggestion - that requires the knowledge of the content type.