prev_topic

NAML documentation   Watch a video
   Usages of this macro
... in prev_topic.naml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<macro name='prev_topic'>
    <n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.get_app_node
Binary
Namespace: NodeNamespace
Parameters: do
.children_list
Macro
Requires: node
Parameters: filter, start, length, sort, do
. start="0"
    length="[n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.get_app_node
Binary
Namespace: NodeNamespace
Parameters: do
.child_count
Binary
Namespace: NodeNamespace
/]"
    filter="[n.app_topic_filter
Macro
Requires: node_page, servlet
/]"
    sort="[n.if.app_is_by_priority][then]priority[/then][else]pinned-and-last-node-date[/else][/n.if.app_is_by_priority]" >
        <n.comment
Macro
Parameters: text
.>Added Prev Topic link</n.comment.> 
        <n.loop
Macro
Requires: sequence
Parameters: by, do
.>         
            <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.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.id
Binary
Namespace: NodeNamespace
/]">                   
                <then>  
                      <a href="[n.var
Binary
Namespace: BasicNamespace
Parameters: name
 name='last_url'/]">Prev Topic </a>       
                </then>  
            </n.if.equal>
            <n.set_var
Binary
Namespace: BasicNamespace
Parameters: name, value
. name='last_url'><n.current_node
Binary
Namespace: NodeList
Parameters: do
.url
Macro
Requires: node
Parameters: template, date, index_record
/></n.set_var.>           
        </n.loop.>
    </n.page_node.get_app_node.children_list.>
</macro>