Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jonas Eriksson 930 posts 1825 karma points
    Nov 28, 2011 @ 10:49
    Jonas Eriksson
    0

    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

     

  • Jonas Eriksson 930 posts 1825 karma points
    Nov 28, 2011 @ 10:55
    Jonas Eriksson
    0

    Btw - it would be nice to be able to copy import definitions to another name.

  • Richard Soeteman 4036 posts 12863 karma points MVP
    Nov 28, 2011 @ 11:20
    Richard Soeteman
    0

    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

     

     

Please Sign in or register to post replies

Write your reply to:

Draft