new_post_extra_fields

NAML documentation   Watch a video
Error Found
An error was found in the NAML code of this application – View Details | Go to NAML Editor
macro or method for 'anonymous_name_control' not found in [basic, nabble, servlet, node_page, html] stack = [basic, nabble, servlet, node, node_poll, node_page, html]
  in anonymous_name_control(custom_tweak:captcha5posts:3) - <then.anonymous_name_control/>
  in if(custom_tweak:captcha5posts:2) - <n.if.not.visitor.is_registered> - public static void nabble.naml.namespaces.BasicNamespace._if(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.Interpreter)
  in reply_form(nabble:reply.naml:115) - <n.reply_form />
  in content(nabble:utilities.naml:953) - <n.content/>
  in form(nabble:reply.naml:111) - <n.form. onsubmit="return singleSubmit(this)">
  in if(nabble:reply.naml:107) - <n.if.not.global_is_var_set name="sent"> - public static void nabble.naml.namespaces.BasicNamespace._if(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.Interpreter)
  in body(nabble:utilities.naml:10) - <n.body/>
  in body(responsive:responsive.naml:13) - <n.body/>
  in nabble_html(responsive:responsive.naml:9) - <n.nabble_html> - public void nabble.view.web.template.ServletNamespace.nabble_html(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.ScopedInterpreter)
  in html_impl(nabble:utilities.naml:4) - <n.html_impl>
  in html(nabble:reply.naml:69) - <n.html>
  in do(nabble:utilities.naml:974) - <n.as_node_page.do/>
  in as_node_page(nabble:utilities.naml:974) - <n.as_node_page.do/> - public void nabble.view.web.template.NodeNamespace.as_node_page(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.ScopedInterpreter)
  in do(nabble:utilities.naml:979) - <n.get_node_from_request_parameter.do/>
  in get_node_from_request_parameter(nabble:utilities.naml:979) - <n.get_node_from_request_parameter.do/> - public void nabble.view.web.template.ServletNamespace.get_node_from_request_parameter(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.ScopedInterpreter) throws java.io.IOException,javax.servlet.ServletException,nabble.naml.namespaces.TemplateException
  in catch_exception(nabble:utilities.naml:978) - <n.catch_exception. id="get-node-block"> - public void nabble.naml.namespaces.BasicNamespace.catch_exception(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.Interpreter)
  in get_node_from_parameter(nabble:utilities.naml:974) - <n.get_node_from_parameter.as_node_page.do/>
  in node_page(nabble:reply.naml:20) - <n.node_page.>
  in new_post(nabble:reply.naml:2) - <n.new_post>
  in (nabble:reply.naml:1) - <macro name="reply" requires="servlet">
   Usages of this macro
... in poll.naml
74
75
76
77
78
79
80
81
82
83
84
85
<override_macro name="new_post_extra_fields" requires="node_page">
    <n.overridden/>
 
    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.both
Binary
Namespace: BasicNamespace
Parameters: condition1, condition2
 condition1="[n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.is_app
Binary
Namespace: NodeNamespace
/]" condition2="[n.visitor
Binary
Namespace: ServletNamespace
Parameters: do
.can_create_poll_in
Macro
Requires: user
Parameters: node_attr
.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
/]">
        <then>
            <div class="extra-fields">
                <img src="/images/add.png" width="12" height="12" style="margin-top:.2em"/>
                <n.add_poll_form
Macro
Requires: node_page
/>
            </div>
        </then>
    </n.if.both>
</override_macro>
Overrides default macro
... in reply.naml
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
<macro name="new_post_extra_fields" requires="node_page">
    <n.extra_fields
Macro
Requires: node_page
Parameters: fields
.>
        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.not
Binary
Namespace: BasicNamespace
Parameters: condition
.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.is_associated_with_mailing_list_archive
Binary
Namespace: NodeNamespace
>
            <then>
                <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.visitor
Binary
Namespace: ServletNamespace
Parameters: do
.is_registered
Binary
Namespace: UserNamespace
>
                    <then>
                        <div class="extra-fields">
                            <n.alert_field
Macro
Parameters: do
.checkbox
Macro
Requires: field
Parameters: style
 style="margin-top:.1em"/>
                            <label for="[n.alert_field
Macro
Parameters: do
.name
Binary
Namespace: FieldNamespace
/]"><t>Alert me by email when someone posts to this thread</t></label>
                        </div>
        
                        <div class="extra-fields">
                            <img src="/images/mail.png" width="18" height="13" style="margin-top:.2em"/>
                            <n.send_node_as_email_input
Macro
 />
                        </div>
                    </then>
                </n.if.visitor.is_registered>
            </then>
        </n.if.not.page_node.is_associated_with_mailing_list_archive>
    </n.extra_fields.>
</macro>