topic_count_column

NAML documentation   Watch a video
   Usages of this macro
... in topic_count_column.naml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<override_macro name="topic_count_column" parameters="title,width">
    <n.table_column
Macro
Parameters: head, body
>
        <head>
            <td class="medium-border-color topic-count-column" align="center" style="[n.width_style
Macro
Parameters: width
.width/]">
                <n.default
Binary
Namespace: BasicNamespace
Parameters: to, text
. to="[t]Topics[/t]"><n.title/></n.default.>
            </td>
        </head>
        <body>
            <td class="weak-color medium-border-color" align="center">
                <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.equal
Binary
Namespace: BasicNamespace
Parameters: value2, value1
 value1="[n.current_node
Binary
Namespace: NodeList
Parameters: do
.id
Binary
Namespace: NodeNamespace
/]" value2="[n.the_Shed_id
Macro
/]">
                    <then>1</then>
                    <else><n.current_node
Binary
Namespace: NodeList
Parameters: do
.topic_count
Binary
Namespace: NodeNamespace
Parameters: filter
/></else>
                </n.if.equal>
            </td>
        </body>
    </n.table_column>
</override_macro>
Overrides default macro
... in columns.naml
26
27
28
29
30
31
32
33
34
35
36
37
<macro name="topic_count_column" parameters="title,width">
    <n.table_column>
        <head>
            <td class="[n.column_default_border/] topic-count-column nowrap" align="center" style="[n.width_style.width/]">
                <n.default. to="[t]Topics[/t]"><n.title/></n.default.>
            </td>
        </head>
        <body>
            <td class="weak-color [n.column_default_border/]" align="center"><n.current_node.topic_count/></td>
        </body>
    </n.table_column>
</macro>