Login  Register

Re: Navigate from Topic to Topic?

Posted by Coleen_Astalos on Oct 31, 2013; 7:41pm
URL: https://support.nabble.com/Navigate-from-Topic-to-Topic-tp7587248p7587648.html

Checking the Node_id didn't work because it's not a one up number from one for each topic.  

This may be getting closer, but still isn't quite there (checking to see if the last_url is null)

      <n.if.not.is_null value="n.var name='last_url'/">   
             <then>
                   <a href="[n.var name='last_url'/]">Prev Topic        
            </then>
     </n.if.not.is_null>     

Apparently the last_url isn't null if there isn't one.  So I tried checking to see if it was blank (tried with a space as well as nothing between the quotes) like this:

     <n.if.not.equal value1="[n.var name='last_url'/]" value2=" ">    
        <then>
       <a href="[n.var name='last_url'/]">Prev Topic        
      </then>
    </n.if.not.equal>        

Nope.  I also tried to print the value of last_url to see what the value WAS.  But then I get a 500 error when I nagivate to the first post in the topic.

No luck.  I'm out of ideas.  But I had fun trying!  Reminds me of my old programmer days.

Coleen