change_view_links

NAML documentation   Watch a video
   Usages of this macro
... in change_view_links.naml
1
2
3
4
5
6
7
8
9
10
11
<override_macro name="change_view_links" requires="node">
    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.equal
Binary
Namespace: BasicNamespace
Parameters: value2, value1
 value1="[n.get_parameter
Binary
Namespace: RequestNamespace
Parameters: name
 name='view'/]" value2="[n.threaded_view
Macro
/]">
        <then>
            <n.classic_icon_link
Macro
Requires: node
/>
            <n.list_icon_link
Macro
Requires: node
/>
        </then>
        <else>
            <n.classic_icon_link
Macro
Requires: node
/>
        </else>
    </n.if.equal>
</override_macro>
Overrides default macro
... in topic.naml
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
<macro name="change_view_links" requires="node">
    <n.if.equal value1="[n.get_parameter name='view'/]" value2="[n.threaded_view/]">
        <then>
            <n.classic_icon_link/>
            <n.list_icon_link/>
        </then>
        <else>
            <n.classic_icon_link/>
            <n.threaded_icon_link/>
        </else>
    </n.if.equal>
</macro>