Login  Register

Re: Navigate from Topic to Topic?

Posted by Coleen_Astalos on Oct 16, 2013; 2:15pm
URL: https://support.nabble.com/Navigate-from-Topic-to-Topic-tp7587248p7587327.html

Only two problems I'm seeing:
1) When I go to page 2 or higher  of the list of topics in a subcategory and click on a topic, the Prev Topic, Next Topic links don't show.    But the bar I added (see below) does show.  So it's executing that code, but perhaps doesn't have a value for those links  

2) When at the last topic in the thread the "Next Topic" is not shown (similar to what I'm seeing above).  Whereas when at the first topic, the "Prev Topic" is shown, it's just not an active link (this is preferable).

I added a bar | in between the prev topic and next topic to separate them a bit:
<override_macro name="topic_controls_right" requires="forum_topic_namespace">
    <n.pin_icon/>
    <n.lock_icon/>
    <n.message_count/>
    
    <n.page_node.topic_dropdown/>
    <n.prev_topic/> | 
    <n.next_topic/>
</override_macro> 

And so if the "Next Topic" words aren't there because it's the last message,  then it looks funny.

Thanks!
Coleen