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...
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.
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 :) ?
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?
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.
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>
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.
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
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
you need
Hi,
Can seem to find the right way to dsiplay the property value
Would you be willing to login and check it for me?
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.
Thanks,
message sent thru your form.
Looks like you need to download the latest MemberListView - as a bonus you get built in filtering and export :)
Hi,
Great thanks, It worked just by uninstalling the old version, and installing the latest.
Thanks a million.
Glad I could help.
- Rob
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
is working on a reply...