edit_post

NAML documentation   Watch a video
Error Found
An error was found in the NAML code of this application – View Details | Go to NAML Editor
no macro found to override
  in (custom_tweak:menu_post_by_email:1) - <override_macro name="menu_post_by_email" requires="node">
   Usages of this macro
... in edit_post.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
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
<macro name="edit_post" requires="servlet">
    <n.node_page
Macro
Requires: servlet
Parameters: do
.>
        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.not
Binary
Namespace: BasicNamespace
Parameters: condition
.visitor
Binary
Namespace: ServletNamespace
Parameters: do
.can_edit
Macro
Requires: user
Parameters: node_attr
.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
>
            <then>
                <n.login
Macro
Requires: servlet
Parameters: message
.><t>Only authorized users can proceed in this area.</t></n.login.>
            </then>
        </n.if.not.visitor.can_edit.page_node>
        <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
.raw_subject
Binary
Namespace: NodeNamespace
/]" />
                <n.html_format_field
Macro
Parameters: do
.set_value
Binary
Namespace: FieldNamespace
Parameters: value
 value="[n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.message
Binary
Namespace: NodeNamespace
Parameters: do
.is_html_format
Binary
Namespace: MessageNamespace
/]" />
                <n.message_field
Macro
Parameters: do
.set_value
Binary
Namespace: FieldNamespace
Parameters: value
 value="[n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.message
Binary
Namespace: NodeNamespace
Parameters: do
.as_editable
Binary
Namespace: MessageNamespace
/]" />
                <n.alert_field
Macro
Parameters: do
.set_value
Binary
Namespace: FieldNamespace
Parameters: value
 value="[n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.visitor_is_subscribed_to_topic
Macro
Requires: node, servlet
/]" />
                <n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.init_edit_post_custom_fields
Macro
Requires: node_page
/>
            </then>
            <else>
                <n.catch_exception
Binary
Namespace: BasicNamespace
Parameters: id, do
. id="save-block">
                    <n.edit_page_node
Binary
Namespace: NodePageNamespace
Parameters: commit, do
. commit="[n.not
Binary
Namespace: BasicNamespace
Parameters: condition
.is_preview
Macro
/]">
                        <n.set_subject
Binary
Namespace: NodeEditorNamespace
Parameters: subject
 subject="[n.subject_field
Macro
Parameters: do
.value
Binary
Namespace: FieldNamespace
/]" />
                        <n.set_message
Binary
Namespace: NodeEditorNamespace
Parameters: is_html, message
 message="[n.message_field
Macro
Parameters: do
.value
Binary
Namespace: FieldNamespace
/]" is_html="[n.not
Binary
Namespace: BasicNamespace
Parameters: condition
.is_null
Binary
Namespace: BasicNamespace
Parameters: value
.html_format_field
Macro
Parameters: do
.value
Binary
Namespace: FieldNamespace
/]" />
                        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.not
Binary
Namespace: BasicNamespace
Parameters: condition
.is_preview
Macro
>
                            <then.save_post
Macro
Requires: node_editor, servlet
 />
                        </n.if.not.is_preview>
                    </n.edit_page_node.>
                    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.not
Binary
Namespace: BasicNamespace
Parameters: condition
.is_preview
Macro
>
                        <then>
                            <n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.save_alert_field
Macro
Requires: node, servlet
/>
                            <n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.save_edit_post_custom_fields
Macro
Requires: node_page
/>
                            <n.redirect_to
Binary
Namespace: ServletNamespace
Parameters: url
.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.path
Macro
Requires: node
Parameters: template, date, index_record
/>
                        </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
.><t>Edit Post</t></n.title.>
                <style type="text/css">
                    .title-row {
                        padding:.2em;
                        border-width:2px;
                        border-style:solid;
                        font-weight:bold;
                    }
                    div.field-title {
                        margin-top: 0;
                    }
                </style>
            </head>
            <body>
                <n.edit_header
Macro
Parameters: first_text, second_text
 first_text="[t]Edit Post[/t]" second_text="[n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.get_app_node
Binary
Namespace: NodeNamespace
Parameters: do
.subject
Macro
Requires: node
/]" />
                <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
.is_preview
Macro
>
                            <then>
                                <n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.preview
Macro
Requires: node
/>
                            </then>
                        </n.if.is_preview>
                        <n.show_edit_post_error
Macro
/>
                    </then>
                </n.if.is_submitted_form>
                <n.form
Macro
Requires: servlet
Parameters: macro, method, onsubmit, content
.>
                    <n.edit_post_form
Macro
 />
 
                    <div style="margin-top:1em">
                        <input type="submit" 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
.path
Macro
Requires: node
Parameters: template, date, index_record
/]"><t>Cancel</t></a>
                    </div>
                </n.form.>
            </body>
        </n.html>
    </n.node_page.>
</macro>