new_post

NAML documentation   Watch a video
   Usages of this macro
... in reply.naml
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
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
<macro name="new_post" parameters="page_name,mailing_list_etiquette,bottom,focus" requires="servlet">
    <n.node_page
Macro
Requires: servlet
Parameters: do
.>
        <n.handle_new_node_permission_error
Macro
/>
        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.not
Binary
Namespace: BasicNamespace
Parameters: condition
.is_submitted_form
Macro
Requires: servlet
>
            <then>
                <n.subject_field
Macro
Parameters: do
.set_value
Binary
Namespace: FieldNamespace
Parameters: value
 value="[n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.default_reply_subject
Binary
Namespace: NodeNamespace
/]" />
                <n.alert_field
Macro
Parameters: do
.set_value
Binary
Namespace: FieldNamespace
Parameters: value
 value="[n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.alert_default_value
Macro
Requires: node
/]" />
                <n.init_new_post_custom_fields
Macro
/>
            </then>
            <else>
                <n.catch_exception
Binary
Namespace: BasicNamespace
Parameters: id, do
. id="save-block">
                    <n.handle_anonymous_submit
Macro
Requires: node_page
/>
                    <n.check_antispam_submit
Binary
Namespace: NodePageNamespace
Parameters: bypass, do
 bypass="preview"/>
                    <n.check_recent_post_limit
Macro
Requires: node_page
/>
                    <n.create_child_of_page_node
Binary
Namespace: NodePageNamespace
Parameters: subject, kind, is_html, commit, do, message, type
 commit="[n.not
Binary
Namespace: BasicNamespace
Parameters: condition
.is_preview
Macro
/]">
                        <subject><n.subject_field
Macro
Parameters: do
.value
Binary
Namespace: FieldNamespace
/></subject>
                        <message><n.message_field
Macro
Parameters: do
.value
Binary
Namespace: FieldNamespace
/></message>
                        <is_html><n.html_format_field
Macro
Parameters: do
.value
Binary
Namespace: FieldNamespace
/></is_html>
                        <type><n.type_field
Macro
Parameters: do
.value
Binary
Namespace: FieldNamespace
/></type>
                        <kind>post</kind>
                        <do>
                            <n.remember_new_node
Macro
Requires: node_editor
/>
                            <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.not
Binary
Namespace: BasicNamespace
Parameters: condition
.is_preview
Macro
>
                                <then>
                                    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.new_node
Macro
Requires: node_page
Parameters: do
.is_associated_with_mailing_list_archive
Binary
Namespace: NodeNamespace
>
                                        <then>
                                            <n.send_mail_to_list
Macro
/>
                                        </then>
                                        <else>
                                            <n.save_post
Macro
Requires: node_editor, servlet
/>
                                            <n.save_new_post_custom_fields
Macro
/>
                                            <n.new_node
Macro
Requires: node_page
Parameters: do
.send_node_as_email
Macro
Requires: node
/>
                                        </else>
                                    </n.if.new_node.is_associated_with_mailing_list_archive>
                                </then>
                            </n.if.not.is_preview>
                        </do>
                    </n.create_child_of_page_node>
                    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.not
Binary
Namespace: BasicNamespace
Parameters: condition
.is_preview
Macro
>
                        <then>
                            <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.not
Binary
Namespace: BasicNamespace
Parameters: condition
.new_node
Macro
Requires: node_page
Parameters: do
.is_associated_with_mailing_list_archive
Binary
Namespace: NodeNamespace
>
                                <then>
                                    <n.new_node
Macro
Requires: node_page
Parameters: do
.save_alert_field
Macro
Requires: node, servlet
/>
                                    <n.redirect_to
Binary
Namespace: ServletNamespace
Parameters: url
.new_node
Macro
Requires: node_page
Parameters: do
.url
Macro
Requires: node
Parameters: template, date, assignee, index_record, priority
/>
                                </then>
                            </n.if.not.new_node.is_associated_with_mailing_list_archive>
                        </then>
                    </n.if.not.is_preview>
                </n.catch_exception.>
            </else>
        </n.if.not.is_submitted_form>
        <n.html
Macro
Parameters: head, body
>
            <head>
                <META NAME="robots" CONTENT="noindex,nofollow"/>
                <n.title
Macro
Parameters: text
.><n.page_name/></n.title.>
                <n.focus/>
                <style type="text/css">
                    .title-row {
                        padding:.6em .8em;
                        font-weight:bold;
                    }
                    div.field-title {
                        margin-top: 0;
                    }
                </style>
            </head>
            <body>
                <n.edit_header
Macro
Parameters: first_text, second_text
 first_text="[n.page_name/]" second_text="[n.truncate
Binary
Namespace: NabbleNamespace
Parameters: size, if_truncated, text
. size='80'][n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.subject
Macro
Requires: node
/][/n.truncate.]" />
 
                <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.is_submitted_form
Macro
Requires: servlet
>
                    <then>
                        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.has_exception
Binary
Namespace: BasicNamespace
Parameters: for
 for="save-block">
                            <then.show_new_node_error
Macro
/>
                            <else>
                                <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.is_preview
Macro
>
                                    <then.new_node
Macro
Requires: node_page
Parameters: do
.preview
Macro
Requires: node
/>
                                    <else.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.new_node
Macro
Requires: node_page
Parameters: do
.is_associated_with_mailing_list_archive
Binary
Namespace: NodeNamespace
>
                                        <then>
                                            <n.new_node
Macro
Requires: node_page
Parameters: do
.preview
Macro
Requires: node
/>
                                            <n.after_send
Macro
Requires: node_page
Parameters: etiquette
/>
                                            <n.global_set_var
Binary
Namespace: BasicNamespace
Parameters: name, value
 name="sent" value="true" />
                                        </then>
                                    </else.if.new_node.is_associated_with_mailing_list_archive>
                                </n.if.is_preview>
                            </else>
                        </n.if.has_exception>
                    </then>
                </n.if.is_submitted_form>
 
                <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.not
Binary
Namespace: BasicNamespace
Parameters: condition
.global_is_var_set
Binary
Namespace: BasicNamespace
Parameters: name
 name="sent">
                    <then>
                        <n.subscription_reminder
Macro
Requires: node_page
/>
        
                        <n.form
Macro
Requires: servlet
Parameters: macro, method, onsubmit, content
. onsubmit="return singleSubmit(this)">
                            <n.type_field
Macro
Parameters: do
.hidden
Macro
Requires: field
/>
                            <n.mailing_list_notice
Macro
Requires: node_page
Parameters: etiquette
.mailing_list_etiquette/>
        
                            <n.reply_form
Macro
 />
        
                            <div style="margin-top:1em">
                                <n.antispam_submit_button
Binary
Namespace: NodePageNamespace
Parameters: do, class, value
 class="toolbar action-button" value="[t]Post Message[/t]"/>
                                <input type="submit" class="toolbar action-button" name="preview" value="[t]Preview Message[/t]"/>
                                <t>or</t>
                                <a href="[n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.url
Macro
Requires: node
Parameters: template, date, assignee, index_record, priority
 /]"><t>Cancel</t></a>
                            </div>
                        </n.form.>
        
                        <n.hide_null
Binary
Namespace: BasicNamespace
Parameters: value
.bottom/>
                    </then>
                </n.if.not.global_is_var_set>
            </body>
        </n.html>
    </n.node_page.>
</macro>