can I assign members to a dynamic set of groups automatically? For example if I create an Sql view with the columns "Group1" "Group2" "Group3" and then the CmsImport assigns to the groups which are true(1)?
Currently I run the import several times, one for each group.
Also : a little confusing with the use of the terminology "Member roles" instead of "Member groups" (Umbraco UI). But that might be for a reason?
Another little thing, the member import wizard ends with the "Import finished" but has "Previous" and "Next" buttons.
You can't use the UI to dynamically add groups because everyone wants to have this different. What you can do is use the RecordImported event and then assign the groups, make sure the groups are in the original query. Then you can use them in the event they should be in the items collection. Then use the items collection to assign the group. Check the CMSImport documentation on page 37 how to use events.
Roles is a mismatch indeed will be replaced with groups in a next release and the next button is disabled, but might be better to hide it. Previous is always possible to change things and re-import again.
Importing members
Hi Richard,
can I assign members to a dynamic set of groups automatically? For example if I create an Sql view with the columns "Group1" "Group2" "Group3" and then the CmsImport assigns to the groups which are true(1)?
Currently I run the import several times, one for each group.
Also : a little confusing with the use of the terminology "Member roles" instead of "Member groups" (Umbraco UI). But that might be for a reason?
Another little thing, the member import wizard ends with the "Import finished" but has "Previous" and "Next" buttons.
Thanks
Jonas
Btw - it would be nice to be able to copy import definitions to another name.
Hi Jonas,
You can't use the UI to dynamically add groups because everyone wants to have this different. What you can do is use the RecordImported event and then assign the groups, make sure the groups are in the original query. Then you can use them in the event they should be in the items collection. Then use the items collection to assign the group. Check the CMSImport documentation on page 37 how to use events.
Roles is a mismatch indeed will be replaced with groups in a next release and the next button is disabled, but might be better to hide it. Previous is always possible to change things and re-import again.
Hope this helps you,
Richard
is working on a reply...