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 418 posts 1015 karma points
    Oct 01, 2014 @ 14:10
    Peter Cort Larsen
    1

    Source code

    Hi,

    Thanks for a great package.

     

    In stead of showing NAME,EMAIL ETC. i would like to show a custom property.

     

    Is this possible?Or could i maybe get the sourcecode?

  • Robert Foster 459 posts 1820 karma points MVP 2x admin c-trib
    Oct 01, 2014 @ 19:42
    Robert Foster
    1

    Hi Peter,

    The source code isn't currently released to the wild, however you can hack the angularjs controllers to add the custom fields to the list view yourself.  Keilo went through a similar exercise here: http://our.umbraco.org/projects/backoffice-extensions/memberlistview-for-umbraco-7/say-hello/54245-Thank-you!?p=1

    When the list view queries the members, it returns a dictionary attached to each record containing all generic fields that it contains (from memory it's called properties).  Note that you will need to modify the Examine Index to include the field you want to display; then you can edit the MemberListView html view to include the extra column.

    Feel free to ask any questions, I'll try to answer them as quickly as I can - however most of what you would need to complete this is already available in the AngularJS Plugin under /App_Plugins...

    Hope this helps!

    Rob. 

  • Peter Cort Larsen 418 posts 1015 karma points
    Oct 02, 2014 @ 14:51
    Peter Cort Larsen
    0

    Hi,

     

    Thanks for your answer.

     

    So if i add the below illustrated config changes to examineIndex.config, i should be able to get 'memWorkshopName'.
    But I cant seem to get this data.

    What do i need to write in 'memberListView.html'?

    Something like this:   {{result.memWorkshopName}}

     

    <IndexSet SetName="InternalMemberIndexSet" IndexPath="~/App_Data/TEMP/ExamineIndexes/InternalMember/">

        <IndexAttributeFields>

          <add Name="id" />

          <add Name="nodeName"/>

          <add Name="updateDate" />

          <add Name="writerName" />

          <add Name="loginName" />

          <add Name="email" />

          <add Name="nodeTypeAlias" />

        </IndexAttributeFields>

     <IndexUserFields>

    <add Name="memWorkshopName" />    

    </IndexUserFields>

      </IndexSet>

  • Robert Foster 459 posts 1820 karma points MVP 2x admin c-trib
    Oct 02, 2014 @ 15:32
    Robert Foster
    0

    Off the top of my head, try something like result.properties.memWorkshopName instead of just result.memWorkshopName (it may be a little different - you would need to examine the data in real time using the Dev Tools (F12))

    Also, verify that the field is showing up in the index - use the Examine Index tools on the Dasboard of the developer section.

  • Peter Cort Larsen 418 posts 1015 karma points
    Oct 02, 2014 @ 16:23
    Peter Cort Larsen
    0

    Hi,

     

    I actually tried esult.properties.memWorkshopName with no luck.

    My prob. is that i dont know how to dig in and find the properties in dev tools.

    I tried using Firebug

  • Robert Foster 459 posts 1820 karma points MVP 2x admin c-trib
    Oct 02, 2014 @ 16:35
    Robert Foster
    0

    Hey,

    Set a breakpoint in the $scope.reloadView method, and inspect the line

    $scope.listViewResultSet = data;

    You should then be able to see the structure of the member records and drill down into the properties...  It's possible that instead of

     result.properties.memWorkshopName 

    you need

     result.properties['memWorkshopName']

     

     

     

     

  • Peter Cort Larsen 418 posts 1015 karma points
    Oct 06, 2014 @ 15:48
    Peter Cort Larsen
    0

    Hi,

    Can seem to find the right way to dsiplay the property value

    Would you be willing to login and check it for me?

  • Robert Foster 459 posts 1820 karma points MVP 2x admin c-trib
    Oct 06, 2014 @ 16:20
    Robert Foster
    0

    Hi Peter,

    Sure, I can do that - send me a request either via DM in twitter, or via the form here: http://digitalsmith.com.au/contact

    Rob.

  • Peter Cort Larsen 418 posts 1015 karma points
    Oct 06, 2014 @ 16:25
    Peter Cort Larsen
    0

    Thanks,

     

    message sent thru your form.

     

  • Robert Foster 459 posts 1820 karma points MVP 2x admin c-trib
    Oct 06, 2014 @ 17:04
    Robert Foster
    100

    Looks like you need to download the latest MemberListView - as a bonus you get built in filtering and export :)

  • Peter Cort Larsen 418 posts 1015 karma points
    Oct 06, 2014 @ 20:30
    Peter Cort Larsen
    0

    Hi,

     

    Great thanks, It worked just by uninstalling the old version, and installing the latest.

     

    Thanks a million.

     

  • Robert Foster 459 posts 1820 karma points MVP 2x admin c-trib
    Oct 07, 2014 @ 00:24
    Robert Foster
    0

    Glad I could help.

    - Rob

  • Jonas Eriksson 930 posts 1825 karma points
    Nov 13, 2014 @ 15:25
    Jonas Eriksson
    0

    Hello, thanks for sharing this package - very nice and useful!

    We like to add some custom filtering (on custom fields), and I don't think that is possible without changing the backend, so I guess my question is : is the source available :) ? 

    Thanks again

    Jonas

Please Sign in or register to post replies

Write your reply to:

Draft