topic_path

NAML documentation   Watch a video
   Usages of this macro
The source code below doesn't have navigation links because no usage has been compiled yet. Navigation links depend on how and where the macro is used, so first you may try finding all usages of "topic_path".
... in topic.naml
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
<macro name="topic_path" parameters="view,index_record,selected_id" requires="node">
    <n.set_var. name="index_record">
        <n.to_null_if. equals="0">
            <n.index_record/>
        </n.to_null_if.>
    </n.set_var.>
    <n.remove_spaces.>
        /<n.url_encoded_subject/>
        -t<n.view_char view="[n.view/]"/><n.id/>
        <n.hide_null.prepend. prefix="i"><n.var name="index_record"/></n.hide_null.prepend.>
        .html
        <n.if>
            <condition.both>
                <condition1><n.not.is_null.selected_id/></condition1>
                <condition2><n.not.equal value1="[n.id/]" value2="[n.selected_id/]"/></condition2>
            </condition.both>
            <then>
                #a<n.selected_id/>
            </then>
        </n.if>
    </n.remove_spaces.>
</macro>