-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
About indexing CustomUserSettings #15921
Comments
Has been solved by covering CustomUserSettingsDisplayDriver |
This was referenced May 1, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: