Login  Register

Re: Navigate from Topic to Topic?

Posted by Pedro on Oct 15, 2013; 8:45pm
URL: https://support.nabble.com/Navigate-from-Topic-to-Topic-tp7587248p7587306.html

Sorry, I had posted the wrong code for the new macro. Try this:
<macro name='next_topic'>
    <n.page_node.get_app_node.children_list. start="[n.app_index_record/]"
            length="[n.app_rows_per_page/]"
            filter="[n.app_topic_filter/]"
    sort="[n.if.app_is_by_priority][then]priority[/then][else]pinned-and-last-node-date[/else][/n.if.app_is_by_priority]" >
        <n.loop.>
            
            <n.if.equal value1="[n.current_node.id/]" value2="[n.page_node.id/]">                
                <then>
                    <n.if.next_node>
                        <then>
                            <a href="[n.current_node.url/]">Next Topic</a>
                        </then>
                    </n.if.next_node>                        
                </then>  
            </n.if.equal>
            
        </n.loop.>
    </n.page_node.get_app_node.children_list.>
</macro>
My test forum.