subscribe_by_code

   Usages of this macro
The source code below doesn't have navigation links because no usage has been compiled yet. Navigation links depend on how and where the macro is used, so first you may try finding all usages of "subscribe_by_code".
... in subscribe.naml
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
<macro name="subscribe_by_code" requires="servlet">
    <n.node_page.>
        <n.catch_exception. id="save-subscription">
            <n.page_node.get_subscription_by_code. code="[n.code_parameter/]">
                <n.if.not.is_subscribed>
                    <then.save to="[n.subscription_to_field.value/]" type="INSTANT" />
                    <else.throw_template_exception name="already_subscribed"/>
                </n.if.not.is_subscribed>
            </n.page_node.get_subscription_by_code.>
        </n.catch_exception.>
        <n.html>
            <head>
                <meta name="robots" content="noindex,nofollow"/>
                <n.title.><t>Subscription Confirmation</t></n.title.>
            </head>
            <body>
                <n.edit_header first_text="[n.page_node.subject/]" second_text="Subscription Confirmation" />
                <br/>
                <n.if.has_exception for="save-subscription">
                    <then>
                        <n.handle_exception. for="save-subscription">
                            <n.exception. name="invalid_link">
                                <h2><t>Invalid Code</t></h2>
                                <p><t>The code in the URL is not valid.</t>
                                <t>Please contact Nabble Support if you need help.</t></p>
                            </n.exception.>
                            <n.exception. name="already_subscribed">
                                <h2><t>Already Subscribed</t></h2>
                                <p><t>You are already subscribed to <n.page_node.subject/>.</t></p>
                            </n.exception.>
                        </n.handle_exception.>
                    </then>
                    <else>
                        <h2><t>Subscription Confirmed</t></h2>
                        <p><t>From now on, you will receive an email for each message posted under <t.location.page_node.subject/>.</t></p>
                    </else>
                </n.if.has_exception>
            </body>
        </n.html>
    </n.node_page.>
</macro>