load_field_values_user

NAML documentation   Watch a video
   Usages of this macro
... in subscribe_user.naml
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<macro name="load_field_values_user" requires="user">
    <n.set_local_user
Macro
Parameters: user
.this_user
Binary
Namespace: UserNamespace
Parameters: do
/>
    <n.set_local_subscription
Macro
Parameters: subscription
.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.subscription_for
Binary
Namespace: NodeNamespace
Parameters: do, email
 email="[n.local_user
Macro
Parameters: do
.user_email
Binary
Namespace: UserNamespace
/]" />
    <n.subscription_to_field
Macro
Parameters: do
.set_value
Binary
Namespace: FieldNamespace
Parameters: value
.>
        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.local_subscription
Macro
Parameters: do
.is_subscribed
Binary
Namespace: SubscriptionNamespace
>
            <then.local_subscription
Macro
Parameters: do
.to
Binary
Namespace: SubscriptionNamespace
/>
            <else>DESCENDANTS</else>
        </n.if.local_subscription.is_subscribed>
    </n.subscription_to_field.set_value.>
    
    <n.subscription_type_field
Macro
Parameters: do
.set_value
Binary
Namespace: FieldNamespace
Parameters: value
.>
        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.local_subscription
Macro
Parameters: do
.is_subscribed
Binary
Namespace: SubscriptionNamespace
>
            <then.local_subscription
Macro
Parameters: do
.type
Binary
Namespace: SubscriptionNamespace
/>
            <else>INSTANT</else>
        </n.if.local_subscription.is_subscribed>
    </n.subscription_type_field.set_value.>
</macro>