reply_form

NAML documentation   Watch a video
   Usages of this macro
... in captcha_5_posts.naml
1
2
3
4
5
6
7
8
9
10
11
12
<override_macro name="reply_form">
    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.not
Binary
Namespace: BasicNamespace
Parameters: condition
.visitor
Binary
Namespace: ServletNamespace
Parameters: do
.is_registered
Binary
Namespace: UserNamespace
>
        <then.anonymous_name_control
Macro
/>
    </n.if.not.visitor.is_registered>
    
    <n.subject_control
Macro
/>
    <n.message_control
Macro
Requires: node_page
/>
    
    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.either
Binary
Namespace: BasicNamespace
Parameters: condition1, condition2
 condition1="[n.not
Binary
Namespace: BasicNamespace
Parameters: condition
.visitor
Binary
Namespace: ServletNamespace
Parameters: do
.is_registered
Binary
Namespace: UserNamespace
/]" condition2="[n.needs_captcha
Macro
/]">
        <then.captcha_control
Macro
/>
    </n.if.either>
</override_macro>
Overrides default macro
... in reply.naml
134
135
136
137
138
139
140
141
142
143
144
145
<macro name="reply_form">
    <n.if.not.visitor.is_registered>
        <then.anonymous_name_control/>
    </n.if.not.visitor.is_registered>
 
    <n.subject_control/>
    <n.message_control/>
 
    <n.if.either condition1="[n.not.visitor.is_registered/]" condition2="[n.visitor.has_too_many_posts/]">
        <then.captcha_control/>
    </n.if.either>
</macro>