RE: Sort Users
Posted by
Pedro on
Oct 28, 2013; 4:37pm
URL: https://support.nabble.com/Sort-Users-tp7587334p7587557.html
This is the email filter:
<n.filter_by.contains_substring string="[n.to_lower_case.current_user.user_email/]" substring="[n.to_lower_case.searchName/]"/>
If you add it at searched_users_list macro it will check if the searched text is in Name and Email at the same time.
But you can check the searched text at an hypothetical string that contains Name and Email. So that, if one of them has the text, it will be shown:
<macro name="searched_users_list" dot_parameter="do" requires="node_page">
<n.site_users. start="0" length="999">
<n.filter_by.contains_substring string="[n.to_lower_case.current_user.name/]+[n.to_lower_case.current_user.user_email/]" substring="[n.to_lower_case.searchName/]"/>
<n.do/>
</n.site_users.>
</macro>