Login  Register

Re: Navigate from Topic to Topic?

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

Please, try this code for the next topic:
<override_macro name="topic_controls_right" requires="forum_topic_namespace">
    <n.pin_icon/>
    <n.lock_icon/>
    <n.message_count/>
    <img src="/images/gear.png" class="image16" alt="[t]Options[/t]"/>
    <n.page_node.topic_dropdown/>
    <n.next_topic/>
</override_macro>

<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.current_node.id/>
        </n.loop.>
    </n.page_node.get_app_node.children_list.>
</macro>
I didn't test it a lot, so you may find some missing details/issues.
My test forum.