unsubscribe_by_code

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:save_post_by_email:1) - <override_macro name="save_post_by_email" requires="post_by_email" unindent="true">
   Usages of this macro
... in unsubscribe.naml
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
<macro name="unsubscribe_by_code" requires="servlet">
    <n.node_page
Macro
Requires: servlet
Parameters: do
.>
        <n.catch_exception
Binary
Namespace: BasicNamespace
Parameters: id, do
. id="remove-subscription">
            <n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.get_subscription_by_code
Binary
Namespace: NodeNamespace
Parameters: code, do
. code="[n.code_parameter
Macro
/]">
                <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.not
Binary
Namespace: BasicNamespace
Parameters: condition
.is_subscribed
Binary
Namespace: SubscriptionNamespace
>
                    <then.throw_template_exception
Binary
Namespace: BasicNamespace
Parameters: name
 name="not_subscribed"/>
                </n.if.not.is_subscribed>
                <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.is_submitted_form
Macro
Requires: servlet
>
                    <then>
                        <n.remove
Binary
Namespace: SubscriptionNamespace
/>
                        <n.send_unsubscription_reminder
Macro
Requires: subscription, node_page, servlet
/>
                    </then>
                </n.if.is_submitted_form>
            </n.page_node.get_subscription_by_code.>
        </n.catch_exception.>
        <n.html
Macro
Parameters: head, body
>
            <head>
                <meta name="robots" content="noindex,nofollow"/>
                <n.title
Macro
Parameters: text
.><t>Remove Subscription</t></n.title.>
            </head>
            <body>
                <n.edit_header
Macro
Parameters: first_text, second_text
 first_text="[n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.subject
Macro
Requires: node
/]" second_text="[t]Remove Subscription[/t]" />
 
                <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.has_exception
Binary
Namespace: BasicNamespace
Parameters: for
 for="remove-subscription">
                    <then.handle_unsubscription_by_code_errors
Macro
/>
                    <else>
                        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.is_submitted_form
Macro
Requires: servlet
>
                            <then>
                                <h2><t>Subscription Removed</t></h2>
                                <t>Your subscription to <t.location.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.subject
Macro
Requires: node
/> has been successfully removed.</t>
                            </then>
                            <else>
                                <h2><t>Do you really want to unsubscribe from <t.location><a href="[n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.url
Macro
Requires: node
Parameters: template, date, index_record
/]"><n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.subject
Macro
Requires: node
/></a></t.location>?</t></h2>
                                <n.form
Macro
Requires: servlet
Parameters: macro, method, onsubmit, content
.>
                                    <input type="hidden" name="code" value="[n.code_parameter
Macro
/]"/>
                                    <input type="hidden" name="action" value="remove-subscription"/>
                                    <input type="submit" class="toolbar action-button" value="[t]Yes, unsubscribe now[/t]"/>
                                    <t>or</t> <a href="[n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.url
Macro
Requires: node
Parameters: template, date, index_record
/]"><t>Cancel</t></a>
                                </n.form.>
                            </else>
                        </n.if.is_submitted_form>
                    </else>
                </n.if.has_exception>
            </body>
        </n.html>
    </n.node_page.>
</macro>