topic_path

NAML documentation   Watch a video
   Usages of this macro
... in topic.naml
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
<macro name="topic_path" parameters="view,index_record,selected_id" requires="node">
    <n.set_var
Binary
Namespace: BasicNamespace
Parameters: name, value
. name="index_record">
        <n.to_null_if
Macro
Parameters: equals, value
. equals="0">
            <n.index_record/>
        </n.to_null_if.>
    </n.set_var.>
    <n.remove_spaces
Macro
Parameters: text
.>
        /<n.url_encoded_subject
Binary
Namespace: NodeNamespace
/>
        -t<n.view_char
Macro
Parameters: view
 view="[n.view/]"/><n.id
Binary
Namespace: NodeNamespace
/>
        <n.hide_null
Binary
Namespace: BasicNamespace
Parameters: value
.prepend
Binary
Namespace: BasicNamespace
Parameters: prefix, text, except_if
. prefix="i"><n.var
Binary
Namespace: BasicNamespace
Parameters: name
 name="index_record"/></n.hide_null.prepend.>
        .html
        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
>
            <condition.both
Binary
Namespace: BasicNamespace
Parameters: condition1, condition2
>
                <condition1><n.not
Binary
Namespace: BasicNamespace
Parameters: condition
.is_null
Binary
Namespace: BasicNamespace
Parameters: value
.selected_id/></condition1>
                <condition2><n.not
Binary
Namespace: BasicNamespace
Parameters: condition
.equal
Binary
Namespace: BasicNamespace
Parameters: value2, value1
 value1="[n.id
Binary
Namespace: NodeNamespace
/]" value2="[n.selected_id/]"/></condition2>
            </condition.both>
            <then>
                #a<n.selected_id/>
            </then>
        </n.if>
    </n.remove_spaces.>
</macro>