Hello! :-)
We're currently developing a module that is using the extranet module. We discovered that when you're creating a custom field it's only specific for users, yet it is still being created on groups (groups and users seems to be the same in the database, other than a different parentid).
Is there any other solutions to set custom fields related to groups other than using the fields created in the database?
Thanks in advance for the advise in this matter! :-)
Developer forum
E-mail notifications
Best practice in creating custom fields on groups
Jackie Nagel
Posted on 12/03/2012 09:59:59
Replies
Jackie Nagel
Posted on 19/03/2012 12:07:51
Furthermore, is there any other solution to update these fields on groups other than inserting it directly into the database? :-)
Bo Møller
Posted on 26/03/2012 20:44:56
Is anyone going to answer this? :-)
Jeppe Eriksson Agger
Posted on 27/03/2012 09:17:17
This post has been marked as an answer
Hi you two
Custom fields on the AccessUser table--which holds both users and user groups--only affect users. Currently there is no way to add custom fields to a user group. You are correct in the fact that users and groups are in the same table, however even though custom fields for users also create the column for groups, there is no getters or setters in the API for working with these. You might be able to create something using the CustomField API located in the Dynamicweb.Modules.Common.CustomFields namespace.
I hope this answers your questions :)
- Jeppe
Custom fields on the AccessUser table--which holds both users and user groups--only affect users. Currently there is no way to add custom fields to a user group. You are correct in the fact that users and groups are in the same table, however even though custom fields for users also create the column for groups, there is no getters or setters in the API for working with these. You might be able to create something using the CustomField API located in the Dynamicweb.Modules.Common.CustomFields namespace.
I hope this answers your questions :)
- Jeppe
Votes for this answer: 0
You must be logged in to post in the forum