| ... | in new_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 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
|
<override_macro name="new_post" parameters="page_name,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
♦ ♦ Binary Namespace: BasicNamespace
Parameters:
condition
♦ ♦ Macro Requires: servlet
♦ ♦
<then>
<n.subject_field Macro Parameters:
do
♦ ♦ Binary Namespace: FieldNamespace
Parameters:
value
♦ ♦ Binary Namespace: NodePageNamespace
Parameters:
do
♦ ♦ Binary Namespace: NodeNamespace
♦ ♦
<n.alert_field Macro Parameters:
do
♦ ♦ Binary Namespace: FieldNamespace
Parameters:
value
♦ ♦ Binary Namespace: NodePageNamespace
Parameters:
do
♦ ♦ Macro Requires: node
♦ ♦
<n.init_new_post_custom_fields Macro ♦ ♦
</then>
<else>
<n.catch_exception Binary Namespace: BasicNamespace
Parameters:
id, do
♦ ♦
<n.check_antispam_submit Binary Namespace: NodePageNamespace
Parameters:
bypass, do
♦ ♦
<n.check_recent_post_limit Macro Requires: node_page
♦ ♦
<n.if Binary Namespace: BasicNamespace
Parameters:
condition, else, then
♦ ♦ Binary Namespace: BasicNamespace
Parameters:
condition
♦ ♦ Macro Parameters:
pattern, text
♦ ♦ Macro Parameters:
do
♦ ♦ Binary Namespace: FieldNamespace
♦ ♦
<then>
<n.throw_template_exception Binary Namespace: BasicNamespace
Parameters:
name
♦ ♦
</then>
</n.if.not.regex_matches>
<n.create_child_of_page_node Binary Namespace: NodePageNamespace
Parameters:
subject, kind, is_html, commit, do, message, type
♦ ♦ Binary Namespace: BasicNamespace
Parameters:
condition
♦ ♦ Macro ♦ ♦
<is_html><n.html_format_field Macro Parameters:
do
♦ ♦ Binary Namespace: FieldNamespace
♦ ♦
<kind>post</kind>
<do>
<n.remember_new_node Macro Requires: node_editor
♦ ♦
<n.if Binary Namespace: BasicNamespace
Parameters:
condition, else, then
♦ ♦ Binary Namespace: BasicNamespace
Parameters:
condition
♦ ♦ Macro ♦ ♦
<then>
<n.save_post Macro Requires: node_editor, servlet
♦ ♦
<n.save_new_post_custom_fields Macro ♦ ♦
</then>
</n.if.not.is_preview>
</do>
</n.create_child_of_page_node>
<n.if Binary Namespace: BasicNamespace
Parameters:
condition, else, then
♦ ♦ Binary Namespace: BasicNamespace
Parameters:
condition
♦ ♦ Macro ♦ ♦
<then>
<n.new_node Macro Requires: node_page
Parameters:
do
♦ ♦ Macro Requires: node, servlet
♦ ♦
<n.redirect_to Binary Namespace: ServletNamespace
Parameters:
url
♦ ♦ Macro Requires: node_page
Parameters:
do
♦ ♦ 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
♦ ♦
<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
♦ ♦ Binary Namespace: NabbleNamespace
Parameters:
size, if_truncated, text
♦ ♦ Binary Namespace: NodePageNamespace
Parameters:
do
♦ ♦ Macro Requires: node
♦ ♦
<n.if Binary Namespace: BasicNamespace
Parameters:
condition, else, then
♦ ♦ Macro Requires: servlet
♦ ♦
<then>
<n.if Binary Namespace: BasicNamespace
Parameters:
condition, else, then
♦ ♦ Binary Namespace: BasicNamespace
Parameters:
for
♦ ♦
<then.show_new_node_error Macro ♦ ♦
<else>
</n.if.is_preview>
</else>
</n.if.has_exception>
</then>
</n.if.is_submitted_form>
<n.if Binary Namespace: BasicNamespace
Parameters:
condition, else, then
♦ ♦ Binary Namespace: BasicNamespace
Parameters:
condition
♦ ♦ Binary Namespace: BasicNamespace
Parameters:
name
♦ ♦
<then>
<n.form Macro Requires: servlet
Parameters:
macro, method, onsubmit, content
♦ ♦
<n.reply_form Macro ♦ ♦
<div style="margin-top:1em">
<n.antispam_submit_button Binary Namespace: NodePageNamespace
Parameters:
do, class, value
♦ ♦ Macro ♦ ♦
<input type="submit" class="toolbar action-button" name="preview" value="[t Macro ♦ ♦
<t Macro ♦ ♦
<a href="[n.page_node Binary Namespace: NodePageNamespace
Parameters:
do
♦ ♦ Macro Requires: node
Parameters:
template, date, index_record
♦ ♦ Macro ♦ ♦
</div>
</n.form.>
<n.hide_null Binary Namespace: BasicNamespace
Parameters:
value
♦ ♦
</then>
</n.if.not.global_is_var_set>
</body>
</n.html>
</n.node_page.>
</override_macro>
|
| ... | in reply.naml |
|
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 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
|
<macro name="new_post" parameters="page_name,bottom,focus" requires="servlet">
<n.node_page.>
<n.handle_new_node_permission_error/>
<n.if.not.is_submitted_form>
<then>
<n.subject_field.set_value value="[n.page_node.default_reply_subject/]" />
<n.alert_field.set_value value="[n.page_node.alert_default_value/]" />
<n.init_new_post_custom_fields/>
</then>
<else>
<n.catch_exception. id="save-block">
<n.check_antispam_submit bypass="preview"/>
<n.check_recent_post_limit/>
<n.create_child_of_page_node commit="[n.not.is_preview/]">
<subject><n.subject_field.value/></subject>
<message><n.message_field.value/></message>
<is_html><n.html_format_field.value/></is_html>
<type><n.type_field.value/></type>
<kind>post</kind>
<do>
<n.remember_new_node/>
<n.if.not.is_preview>
<then>
<n.save_post/>
<n.save_new_post_custom_fields/>
<n.new_node.send_node_as_email/>
</then>
</n.if.not.is_preview>
</do>
</n.create_child_of_page_node>
<n.if.not.is_preview>
<then>
<n.new_node.save_alert_field/>
<n.redirect_to.new_node.path/>
</then>
</n.if.not.is_preview>
</n.catch_exception.>
</else>
</n.if.not.is_submitted_form>
<n.html>
<head>
<META NAME="robots" CONTENT="noindex,nofollow"/>
<n.title.><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 first_text="[n.page_name/]" second_text="[n.truncate. size='80'][n.page_node.subject/][/n.truncate.]" />
<n.if.is_submitted_form>
<then>
<n.if.has_exception for="save-block">
<then.show_new_node_error/>
<else>
<n.if.is_preview>
<then.new_node.preview/>
</n.if.is_preview>
</else>
</n.if.has_exception>
</then>
</n.if.is_submitted_form>
<n.if.not.global_is_var_set name="sent">
<then>
<n.form. onsubmit="return singleSubmit(this)">
<n.type_field.hidden/>
<n.reply_form />
<div style="margin-top:1em">
<n.antispam_submit_button 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.path /]"><t>Cancel</t></a>
</div>
</n.form.>
<n.hide_null.bottom/>
</then>
</n.if.not.global_is_var_set>
</body>
</n.html>
</n.node_page.>
</macro>
|
| Free forum by Nabble | Edit this page |