app_topic_filter

NAML documentation   Watch a video
   Usages of this macro
... in app_topic_filter.naml
1
2
3
4
5
6
7
8
9
10
11
12
<override_macro name="app_topic_filter" requires="node_page,servlet">
    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.equal
Binary
Namespace: BasicNamespace
Parameters: value2, value1
 value1="[n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.id
Binary
Namespace: NodeNamespace
/]" value2="[n.root_node
Binary
Namespace: NabbleNamespace
Parameters: do
.id
Binary
Namespace: NodeNamespace
/]">
        <then>
            <n.separate
Binary
Namespace: BasicNamespace
Parameters: text1, text2, separator
>
                <text1.hide_null
Binary
Namespace: BasicNamespace
Parameters: value
.overridden />
                <separator>and</separator>
                <text2.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.exclude_parent_filter
Binary
Namespace: NodeNamespace
Parameters: parent_id
 parent_id="1389381" />
            </n.separate>
        </then>
        <else.overridden/>
    </n.if.equal>
</override_macro>
Overrides default macro
... in app.naml
298
299
300
<macro name="app_topic_filter" requires="node_page,servlet">
    <n.cache
Macro
Parameters: var, value
 var="app_topic_filter" value="[n.calc_app_topic_filter
Macro
Requires: node_page, servlet
/]" />
</macro>