delete_from_site

NAML documentation   Watch a video
   Usages of this macro
... in delete_node.naml
21
22
23
24
25
26
27
28
29
30
31
<macro name="delete_from_site" 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_delete_recursively
Macro
Requires: user
Parameters: node
.page_node>
            <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_delete_recursively.page_node>
 
        <n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.delete_node_recursively_and_redirect
Macro
Requires: node
/>
    </n.node_page.>
</macro>