We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22969
    • 158 Posts
    I get this...

    <ul>
                    <!-- Either a link to the resource before the current one
     OR to the last resource in the list of results -->
                    
                        <li class="prev">9 -
     </li>
                    
                    
                     <!-- The current resource. I don't think you'll need
     that one -->
                        <li class="current">10 -
     </li>
                    
                    <!-- Either a link to the next resource OR the first
     resource in the list of results -->
                   
     <li class="next">8 -
     </li>
                </ul>
    
      • 23018
      • 353 Posts
      Quote from: peekaboo at Feb 27, 2014, 04:10 PM
      I get this...

      <ul>
                      <!-- Either a link to the resource before the current one
       OR to the last resource in the list of results -->
                      
                          <li class="prev">9 -
       </li>
                      
                      
                       <!-- The current resource. I don't think you'll need
       that one -->
                          <li class="current">10 -
       </li>
                      
                      <!-- Either a link to the next resource OR the first
       resource in the list of results -->
                     
       <li class="next">8 -
       </li>
                  </ul>
      

      Uppps, BIG gremlins.

      First check if you have any trash (tabs, empty spaces, etc) inside [[~[[+id]]]]. As this might be a cut'n'paste problem I recommend to delete that part completely and write it yourself. It's the usual standard syntax for inserting a link to a specific resource.

      If this doesn't work out, try this:

      Create a new chunk called carouselNav_tpl and insert this:

      <a href="[[~[[+id]]]]">[[+pagetitle]]</a>


      Next change

      &tpl=`@INLINE <a href="[[~[[+id]]]]">[[+pagetitle]]</a>`


      to

      &tpl=`carouselNav_tpl`


      How about now?

      P.S. If this still doesn't work, post the exact getResources and modx version you are using.

      [ed. note: pepebe last edited this post 10 years, 2 months ago.]
        Homepage: pepebe.de | MODX snippets (and other stuff) at github: https://gist.github.com/pepebe
        • 22969
        • 158 Posts
        Brilliant!!

        That works perfect pepebe!

        Thank you so much! smiley
          • 23018
          • 353 Posts
          Quote from: peekaboo at Feb 27, 2014, 04:40 PM
          Brilliant!!

          That works perfect pepebe!

          Thank you so much! smiley

          Your welcome!

          BTW: What worked? Rewriting the [[~[[+id]]]] part or using a chunk instead of the @INLINE syntax?
            Homepage: pepebe.de | MODX snippets (and other stuff) at github: https://gist.github.com/pepebe
            • 22969
            • 158 Posts
            the chunk smiley
              • 23018
              • 353 Posts
              I think there should be a button to close this thread. Please do that. I keep forgetting to do that all the time sad

              P.S. I wrote you a PM [ed. note: pepebe last edited this post 10 years, 2 months ago.]
                Homepage: pepebe.de | MODX snippets (and other stuff) at github: https://gist.github.com/pepebe
                • 5904
                • 58 Posts
                Quote from: Bruno17 at Feb 24, 2014, 03:50 PM
                should be possible with siblingnav, not sure about the infinite looping, but I'm sure it could be added as an option.

                Has anyone tried adding infinite looping?
                  • 4172
                  • 5,888 Posts
                    -------------------------------

                    you can buy me a beer, if you like MIGX

                    http://webcmsolutions.de/migx.html

                    Thanks!
                    • 5904
                    • 58 Posts
                    Quote from: Bruno17 at Apr 11, 2015, 09:42 AM
                    with this new version (github only currently)

                    with &infinitLoop=`1`

                    https://github.com/Bruno17/siblingnav/blob/master/core/components/siblingnav/model/siblingnav/siblingnav.class.php

                    Wonderful! Just tried and it works well. Thank you, Bruno!

                    Noticed &selectfields and &joins also added to the php class. Curious to learn how they may be used smiley

                    Thanks again!
                      • 4172
                      • 5,888 Posts
                      &joins and &selectfields does work the same as with migxLoopCollection

                      I've posted a quick example how to use the &joins to get a TV-value with the query here:
                      http://forums.modx.com/thread/74137/siblingnav-snippet-order-by-tv?page=2#dis-post-524207

                      if you have many results and don't need all fields you can use the &selectfields to get only some fields like:

                      &selectfields=`id,pagetitle`
                        -------------------------------

                        you can buy me a beer, if you like MIGX

                        http://webcmsolutions.de/migx.html

                        Thanks!