change_app_type

NAML documentation   Watch a video
   Usages of this macro
... in change_app_type.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
<macro name="change_app_type" 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.type_field
Macro
Parameters: do
.set_value
Binary
Namespace: FieldNamespace
Parameters: value
 value="[n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.type
Binary
Namespace: NodeNamespace
Parameters: equals
/]" />
            </then>
            <else>
                <n.catch_exception
Binary
Namespace: BasicNamespace
Parameters: id, do
. id="save-block">
                    <n.edit_page_node
Binary
Namespace: NodePageNamespace
Parameters: commit, do
.>
                        <n.set_type
Binary
Namespace: NodeEditorNamespace
Parameters: type
 type="[n.type_field
Macro
Parameters: do
.value
Binary
Namespace: FieldNamespace
/]" />
                        <n.save_node
Binary
Namespace: NodeEditorNamespace
/>
                    </n.edit_page_node.>
                    <n.redirect_to
Binary
Namespace: ServletNamespace
Parameters: url
.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.path
Macro
Requires: node
Parameters: template, date, index_record
/>
                </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>Change Application Type</t></n.title.>
            </head>
            <body>
                <n.edit_header
Macro
Parameters: first_text, second_text
 first_text="[t]Change Application Type[/t]" second_text="[n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.get_app_node
Binary
Namespace: NodeNamespace
Parameters: do
.subject
Macro
Requires: node
/]" />
 
                <n.form
Macro
Requires: servlet
Parameters: macro, method, onsubmit, content
.>
                    <n.type_option
Macro
Parameters: option_value, description, text
 option_value="forum" text="[t]Forum[/t]" description="[t]Page with topics and discussions.[/t]"/>
                    <n.type_option
Macro
Parameters: option_value, description, text
 option_value="mixed" text="[t]Mixed[/t]" description="[t]Page with topics grouped by sub-applications. If no sub-apps exist, a normal list of topics is displayed.[/t]"/>
                    <n.type_option
Macro
Parameters: option_value, description, text
 option_value="category" text="[t
Macro
]Category[/t]" description="[t]Page with a simple list of sub-applications and discussions.[/t]"/>
                    <n.type_option
Macro
Parameters: option_value, description, text
 option_value="board" text="[t]Board[/t]" description="[t]Page that groups sub-applications and discussions.[/t]"/>
                    <n.type_option
Macro
Parameters: option_value, description, text
 option_value="gallery" text="[t]Gallery[/t]" description="[t]Photo and image gallery.[/t]"/>
                    <n.type_option
Macro
Parameters: option_value, description, text
 option_value="blog" text="[t]Blog[/t]" description="[t]Page with full messages and related comments.[/t]"/>
                    <n.type_option
Macro
Parameters: option_value, description, text
 option_value="news" text="[t]News[/t]" description="[t]Page with headlines and posts.[/t]"/>
 
                    <div style="margin-top:1.4em">
                        <input type="submit" class="toolbar action-button" value="[t]Save Changes[/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>