visible_users_list

NAML documentation   Watch a video
   Usages of this macro
The source code below doesn't have navigation links because no usage has been compiled yet. Navigation links depend on how and where the macro is used, so first you may try finding all usages of "visible_users_list".
... in visible_users_list.naml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<override_macro name="visible_users_list" dot_parameter="do" requires="node_page">
    <n.if.is_null.people_filter>
        <then>
            <n.if.page_node.allows_showing_members_of.anyone_group>
                <then>
                    <n.site_users. start="0" length="99999" filter="[n.registered_filter/]">
                        <n.filter_by.current_user.not.is_banned/>
                        <n.do/>
                    </n.site_users.>
                </then>
                <else>
                    <!-- get the first group available -->
                    <n.available_groups.>
                        <n.if.next_element>
                            <then>
                                <n.users_in_group. group="[n.current_group/]">
                                    <n.filter_by.current_user.both condition1="[n.not.is_deactivated/]" condition2="[n.not.is_banned/]"/>
                                    <n.sort_by_node_count_desc/>
                                    <n.do/>
                                </n.users_in_group.>
                            </then>
                            <else.empty_users_list.do/>
                        </n.if.next_element>
                    </n.available_groups.>
                </else>
            </n.if.page_node.allows_showing_members_of.anyone_group>
        </then>
        <else>
            <!-- get the filtered group -->
            <n.if.page_node.allows_showing_members_of.people_filter>
                <then>
                    <n.users_in_group. group="[n.people_filter/]">
                        <n.filter_by.current_user.both condition1="[n.not.is_deactivated/]" condition2="[n.not.is_banned/]"/>
                        <n.sort_by_node_count_desc/>
                        <n.do/>
                    </n.users_in_group.>
                </then>
                <else.empty_users_list.do/>
            </n.if.page_node.allows_showing_members_of.people_filter>
        </else>
    </n.if.is_null.people_filter>
</override_macro>
Overrides default macro
... in people.naml
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<macro name="visible_users_list" dot_parameter="do" requires="node_page">
    <n.if.is_null.people_filter>
        <then>
            <n.if.page_node.allows_showing_members_of.anyone_group>
                <then>
                    <n.site_users. start="0" length="99999" filter="[n.registered_filter/]">
                        <n.filter_by.current_user.not.is_banned/>
                        <n.do/>
                    </n.site_users.>
                </then>
                <else>
                    <!-- get the first group available -->
                    <n.available_groups.>
                        <n.if.next_element>
                            <then>
                                <n.users_in_group. group="[n.current_group/]">
                                    <n.filter_by.current_user.both condition1="[n.not.is_deactivated/]" condition2="[n.not.is_banned/]"/>
                                    <n.sort_by_node_count_desc/>
                                    <n.do/>
                                </n.users_in_group.>
                            </then>
                            <else.empty_users_list.do/>
                        </n.if.next_element>
                    </n.available_groups.>
                </else>
            </n.if.page_node.allows_showing_members_of.anyone_group>
        </then>
        <else>
            <!-- get the filtered group -->
            <n.if.page_node.allows_showing_members_of.people_filter>
                <then>
                    <n.users_in_group. group="[n.people_filter/]">
                        <n.filter_by.current_user.both condition1="[n.not.is_deactivated/]" condition2="[n.not.is_banned/]"/>
                        <n.sort_by_node_count_desc/>
                        <n.do/>
                    </n.users_in_group.>
                </then>
                <else.empty_users_list.do/>
            </n.if.page_node.allows_showing_members_of.people_filter>
        </else>
    </n.if.is_null.people_filter>
</macro>