I am using Elgg 1.7 and the profile_manager plugin. Right now when I do a search of members, The users name, icon, and location are returned. Location is one of the fields I defined using profile manager. I'm wondering 2 things...
1. Why does the lcoation field value get returned in the search results?
2. How do I get the values of any other fields returned?
I'm fairly new to Elgg and am just learning how everything is put together behind the scenes so any tips on what to look for and where to look would be greatly appreciated.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Team Webgalli@webgalli

Team Webgalli - 0 likes
- morepower@morepower

morepower - 0 likes
- morepower@morepower

morepower - 0 likes
- Cash@costelloc

Cash - 0 likes
You must log in to post replies.The location of user is shown, because its a part of elgg profile listing view. If you want to get any other values, just do it as follows,
echo $user->metadata_name;
You can learn about elgg metadata @ http://docs.elgg.org
Finally back from vacation so I can get back to this...
Thanks for the response. I'm still figuring out the architecture of ELGG and where to find everything. Can you point me in the direction of where I would put such a statement?
I seem to have found my answer...
The file mod/profile/views/default/profile/listing.php actually compiles the information to put in the member search listing around line 39. That is then passed to views/default/entities/entity_listing.php to be output.
That sounds right for Elgg 1.7. I think we cleaned this up in Elgg 1.8 so that it uses the view user/default. This makes it more consistent with the other entities in Elgg. A blog maps to the view object/blog, a group maps to group/default, and so on. It is <type>/<subtype>.
You might want to check out this plugin to help with finding the right views: http://community.elgg.org/pg/plugins/project/714742/developer/aszepeshazi/content-debugger