We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22249
    • 2 Posts
    I’m having the same issue that luuuciano mentioned earlier: I’m using PrevJumpNext to navigate resources within submenus. This works just fine, except that the "NEXT" link doesn’t display on the second-to-last page in both my sets of items. All items are marked as "Display in Menu." None share menuindex values. The same problem doesn’t happen with the "PREVIOUS" link at the beginning of the set. Very frustrating. Any ideas?
      • 22249
      • 2 Posts
      Well, it looks like I was able to fix it by editing one line in the code:

      $last = $y;

      Whereas before the line was $last = $y-1;

      Not at all sure how this bug could have lasted this long, but that did indeed fix things: I now get a NEXT link on my second-to-last item, and no NEXT on the actual last item. Hooray!
        • 30912
        • 463 Posts
        Is it possible to use images for prevText and nextText?
          • 11468
          • 20 Posts
          Hi guys

          I have used this snippet (version 0.4 based on PrevNext v0.9) from here http://modxcms.com/extras/package/?package=351 successfully on one site with revolution 1.0.0.
          I am now redoing my own site and decided to upgrade to Evo 1.0.4. Now this version is coming up with a parse error -
          Error:	Invalid argument supplied for foreach()	 
            Error type/ Nr.:	Warning - 2	 
            File:	......./manager/includes/document.parser.class.inc.php(770) : eval()'d code	 
            Line:	196

          But version: 0.3 (based on the PrevJumpNext v0.3) mentioned previously in this thread (here : http://modxcms.com/forums/index.php/topic,5925.msg144825.html#msg144825) works but without some of the functionality I want - eg &prevSymbol=`< ` &nextSymbol=` >` &lastSymbol=` >>` &firstSymbol=`<< `

          I understand that the functionality is not in the older code and can SEE where it is in the code of the newer version but I am just not proficient enough in php to understand how to combine the two to get what I want lol. Any help appreciated!

          Also looked for the Navigator snippet mentioned but broken linky sad

          Edit: Sorry just found Navigator here : http://modxcms.com/extras/package/314
            • 9995
            • 1,613 Posts
            I’m trying to get a placeholder:

            But &text isn’t working:
            when there is nothing into tv: tvhere, i need a placeholder.

            <img src="[!prevtv? &direction=`1` &text=`/assets/templates/web/images/spacer.gif` &tvname=`tvhere`!]" height="140">
              Evolution user, I like the back-end speed and simplicity smiley
              • 10449
              • 956 Posts
              Quick note for anyone who’s scratching his head, because the jump menu is not working correctly in some browsers (most notably IE8):

              Change line 198 from:
              	 $PJN_jumpPlaceHolder .= '    <option value="[~'.$my_page['id'].'~]">'.$jumpTitle.'</option>';

              to
              	 $PJN_jumpPlaceHolder .= '    <option value="[(site_url)][~'.$my_page['id'].'~]">'.$jumpTitle.'</option>';


              This will create absolute links instead of relative ones.