You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying by modifying CustomUserSettingsDisplayDriver class ,
for each CustomUserSettings Sterotype on save
Call the IContentManager.CreateOrUpdateAndPublishAsync in UpdateAsync function
This saves the CustomUserSettings type to the content item, that will triggers the default indexing, 'TitlePartHandler', etc
After that, the ContentItem.Id property will be assigned.
But JObject.FromObject(ContentItem) or ToObject() will always remove the contentitem.id property
I was wondering, would it cause any problems if we kept the Id attribute?
I'm trying by modifying
CustomUserSettingsDisplayDriver
class ,for each
CustomUserSettings
Sterotype on saveCall the
IContentManager.CreateOrUpdateAndPublishAsync
inUpdateAsync
functionThis saves the
CustomUserSettings
type to the content item, that will triggers the default indexing, 'TitlePartHandler', etcAfter that, the
ContentItem.Id
property will be assigned.But JObject.FromObject(ContentItem) or ToObject() will always remove the contentitem.id property
I was wondering, would it cause any problems if we kept the
Id
attribute?OrchardCore/src/OrchardCore/OrchardCore.ContentManagement.Abstractions/ContentItem.cs
Lines 9 to 16 in 1d4589b
Thanks!
The text was updated successfully, but these errors were encountered: