load_field_values

NAML documentation   Watch a video
   Usages of this macro
... in load_field_values.naml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<override_macro name="load_field_values">
    <n.subscription_to_field
Macro
Parameters: do
.set_value
Binary
Namespace: FieldNamespace
Parameters: value
.>
        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.visitor_is_subscribed
Binary
Namespace: NodeNamespace
>
            <then.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.visitor_subscription
Binary
Namespace: NodeNamespace
Parameters: do
.to
Binary
Namespace: SubscriptionNamespace
/>
            <else>DESCENDANTS</else>
        </n.if.page_node.visitor_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
.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.visitor_is_subscribed
Binary
Namespace: NodeNamespace
>
            <then.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.visitor_subscription
Binary
Namespace: NodeNamespace
Parameters: do
.type
Binary
Namespace: SubscriptionNamespace
/>
            <else>DAILY_DIGEST</else>
        </n.if.page_node.visitor_is_subscribed>
    </n.subscription_type_field.set_value.>
</override_macro>
Overrides default macro
... in subscribe.naml
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<macro name="load_field_values">
    <n.subscription_to_field.set_value.>
        <n.if.page_node.visitor_is_subscribed>
            <then.page_node.visitor_subscription.to/>
            <else>DESCENDANTS</else>
        </n.if.page_node.visitor_is_subscribed>
    </n.subscription_to_field.set_value.>
 
    <n.subscription_type_field.set_value.>
        <n.if.page_node.visitor_is_subscribed>
            <then.page_node.visitor_subscription.type/>
            <else>INSTANT</else>
        </n.if.page_node.visitor_is_subscribed>
    </n.subscription_type_field.set_value.>
</macro>