Copied to clipboard

Flag this post as spam?

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


  • keilo 568 posts 1023 karma points
    Jun 23, 2015 @ 13:25
    keilo
    0

    How to show MemberType as Column in ListView

    How does one show the MemberType in the Listview as a column(forex: Customers and Leads shows together which would be less than ideal in such case) ?

    I did this sometime (year) ago, tried to retrieve the post/modification but I failed : ) Lack of nutrition or caffeine to blame...

    Can you please tell me how to do go about showing MemberType as a column in the default ListView?

    cheers!

  • Robert Foster 459 posts 1820 karma points MVP 3x admin c-trib
    Jun 23, 2015 @ 13:28
    Robert Foster
    101

    Hi Keilo, It's actually quite easy:

    https://github.com/robertjf/umbMemberListView/blob/master/MemberListView/App_Plugins/MemberManager/backoffice/dashboard/memberListView.html#L20

    You can see from the line on that file how to access the member type, and then it's just a matter of editing the html to include the extra column in the table.

    Note also that the line referenced above is using the Member Type Icon to denote which MemberType the user is based on (well, line 21 of that file). So if you have different icons for each member type you'll be able to see at a glance which one it is.

  • Jonathan Roberts 409 posts 1063 karma points
    Mar 05, 2018 @ 10:03
    Jonathan Roberts
    0

    Hi,

    Is this still applicable for Umbraco 7.8? I would like to Decrypt the member data as we have been working on Encrypting the data going into the member area.

    Jon

  • Robert Foster 459 posts 1820 karma points MVP 3x admin c-trib
    Mar 05, 2018 @ 10:08
    Robert Foster
    0

    Hey,

    It hasn’t really changed - the data is returned from the Members examine index, so if you’ve included your field in there you should be able to retrieve it as described above.

    If you need to decrypt it, you may have to do some extra work either client side or server side.

    Rob

  • Jonathan Roberts 409 posts 1063 karma points
    Mar 05, 2018 @ 10:11
    Jonathan Roberts
    0

    Hi,

    Great, thanks you so much - could I ask a huge favour? Do you know where I should look at Server side? I have had a look around and cant find any areas that I could extend?

    Jon

  • Robert Foster 459 posts 1820 karma points MVP 3x admin c-trib
    Mar 05, 2018 @ 10:20
    Robert Foster
    1

    It really depends on what you’re wanting to do - you could download the memberlistview source and look in the Controllers for some hints, or implement your own ApiController...

  • Jonathan Roberts 409 posts 1063 karma points
    Mar 05, 2018 @ 10:37
    Jonathan Roberts
    0

    We have tried to extend the Examine indexer to decrypt the data but it isnt showing in the Listview - it is decrypted in the index search results though. Is the listview using different data?

  • Robert Foster 459 posts 1820 karma points MVP 3x admin c-trib
    Mar 06, 2018 @ 00:15
    Robert Foster
    0

    Check the Umbraco Log for any indexing errors - you can use Chrome Dev Tools to inspect the properties that are coming through on the Web API to make sure your property is being retrieved and verify the field name...

Please Sign in or register to post replies

Write your reply to:

Draft