Copied to clipboard

Flag this post as spam?

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


  • Peter Cort Larsen 421 posts 1038 karma points
    Jun 23, 2015 @ 11:24
    Peter Cort Larsen
    0

    Sorting custom property

    Hi,

    And thank you for a great package.

    I have succesfully added a custom property in the listview. But i can get sorting to work for this property.

    Any ideas how to achieve this?

  • Robert Foster 459 posts 1820 karma points MVP 3x admin c-trib
    Jun 23, 2015 @ 12:42
    Robert Foster
    0

    Hi Peter, Currently sorting is restricted to name or email address by the search method. Specifically, in the PerformMemberSearch helper method:

    https://github.com/robertjf/umbMemberListView/blob/master/MemberListView/Helpers/MemberSearch.cs#L99-L101

    I always intended to allow any field to be sorted, and the rest of the project would allow for it already. If you want to have a go I'm always happy to receive a pull request :)

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

    [Edited] An attempt to hijack the thread failed miserably. If you read the original post and wonder how to show a column (MemberType) in the default listview, follow the link

    https://our.umbraco.org/projects/backoffice-extensions/memberlistview-for-umbraco-7/say-hello//66787-how-to-show-membertype-as-column-in-listview

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

    Yep, hijacked :)

    Create a new thread and I'll answer it there for you

  • Peter Cort Larsen 421 posts 1038 karma points
    Jun 24, 2015 @ 11:55
    Peter Cort Larsen
    0

    Hi Robert,

    Thank you for your answer.

    I am afraid that suggested solution is a little our of my leaque. I looked at your solution, but couldnĀ“t figure put how to replace your sorting rules with a custom property.

    If you have an idea, it would be much appriciated.

  • Robert Foster 459 posts 1820 karma points MVP 3x admin c-trib
    Jun 24, 2015 @ 23:07
    Robert Foster
    0

    Hi Peter, unfortunately I'm drowning in work at the moment; I'm hoping to give the MemberListView some love in the next month or so, but not capable of doing so right now.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies