subscribe_user_top_digest

NAML documentation   Watch a video
   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_user_top_digest".
... in subscribe_user_top_digest.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
<macro name="subscribe_user_top_digest" requires="servlet">
     <n.node_page.>
         <n.set_local_user.get_user_from_id user_id="[n.get_parameter name='user'/]" />
         <n.set_local_subscription.page_node.subscription_for email="[n.local_user.user_email/]" />
        <n.if.is_submitted_form>
            <then>
                     
                <n.if.equal value1="save-subscription" value2="[n.action_parameter/]">
                    <then>
                                 
                        <n.local_subscription.save
                        to="DESCENDANTS"
                        type="DAILY_DIGEST"
                        />
                            
                       <n.redirect_to.subscription_saved_user_url2/> 
 
                    </then>
                </n.if.equal>
            </then>
        </n.if.is_submitted_form>
        <n.html>
             <head>
                <n.title.><t>Subscribe Top Digest Only</t></n.title.>
                <n.main_title_css/>
            </head>
            <body>
                <n.local_user.profile_header/>
                <br/>
                <div class="shaded-bg-color rounded second-font main-title">
                    <t>Subscribe User to Top Digest Only</t>
                </div>
                <div style="font-weight:bold;margin: 2em 0 1em">
                    <t>Do you really want to subscribe this user to <t.location><a href="[n.page_node.url/]"><n.page_node.subject/></a></t.location> TOP Digest only?  (Remember to "Unsubscribe All Children" first)</t>
                </div>
                
               <n.form.>
                   <input type="hidden" name="node" value="[n.page_node.id/]"/>
                   <input type="hidden" name="action" value="save-subscription"/>
                   <br/><input type="submit" class="toolbar action-button" value="[t]Save Subscription[/t]"/> 
                   <t>or</t> <a href="javascript:history.back()"><t>Cancel</t></a> 
                </n.form.>
            </body>
        </n.html>
    </n.node_page.>
</macro>