I want to make a module, it allows the administrator to dynamically set user attributes, and then the user can fill out these information, and can be indexed and queries. Just like we define a content components, but I don't know how to do it. Who can provide some advice and guidance?
Create a custom part and driver like this: https://github.com/OrchardCMS/OrchardCore/blob/dev/src/OrchardCore.Modules/OrchardCore.Demo/Drivers/UserProfileDisplayDriver.cs
This will only be editable in the admin, but you can create your own controller and view to display these values and change them on the front end.
Thanks @sebastienros
This is just an example of how to add a fixed field, and I want to add the ability to dynamically manage the field here
The functionality I wanted to implement would probably include two pages:
@hyzx86 I also agree to extend user attributes to content types and content management docking, which is very flexible.
@pgy866 默认提供的用户字段太少了,至少来个 First Name ,Last Name ,也还能凑合用。。
我开发了一个Module,但是用 Liquid 查不出来我添加的属性,改来改去,连Module也结果显示不出来了~~
In theory, all locations can be understood as content (ie data), just like KOOBOO CMS, including user modules, if used for flexible design that can be extended to content type docking, managing dynamic user attributes is of course good at Umbraco There is a Membership Module that is separate from the site user. It is equivalent to a content type. It can be freely designed and extended. For Orchard core, they seem to have user modules at the same time, but orchard core provides an extended interface, because I am not Programmers don't write code, they can't help you, sorry. Online below this link has a duplicate "https://github.com/OrchardCMS/OrchardCore/issues/1235"
There should be another method, which is to design a content type required by a member in content management, and directly refer to this content type to the rights management. As a registered user member of the website, registration, personal homepage, personal information, etc., I am See here KOOBOO CMS is doing this. Https://kooboo.com/en/documentation/kscript_example"
User management based on kScript
Implement user registration, login, and create personal projects.
UserProject.zip
"
But I don't know if he is feasible, theoretically possible.
It's like designing a content type like a blog post as a user attribute, storing management in content management, referencing to user rights.
Yes, but I think that's not easy to implement.
Today saw a statistics. In all languages of github, making c # thumb ICONS with the least amount of.. We should try to change to this situation
I assume you managed to add a custom part to your users as I saw another issue with custom properties. So I am closing this one.
I want to make a module, it allows the administrator to dynamically set user attributes, and then the user can fill out these information, and can be indexed and queries. Just like we define a content components, but I don't know how to do it. Who can provide some advice and guidance?
Hi,
Did you find the solution for your question?
Can you share please?