We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 39666
    • 29 Posts
    Hi,

    I'm using Quip in a Blog, with paginated comments. Links in pagination work successfully in the way page_url?quip_start=0&quip_limit=10.

    But, when I try links from Latest Comments in the way page_url?quip_start=[[+id]]&quip_limit=10#anchor, it go to the anchor but quip_start and quip_limit don't work.

    Ex.: pageurl?quip_start=28&quip_limit=10#prefix28 go to comment 28 but the page show like if quip_start was 0 and no quip_limit, so showing all comments.

    Some idea?

    This question has been answered by BobRay. See the first response.

      www.abelmartinez.net
    • discuss.answer
      • 3749
      • 24,544 Posts
      Is the +id placeholder in a chunk that being processed by getResources? Something has to set that placeholder for it to work.
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
        • 39666
        • 29 Posts
        Quote from: BobRay at Feb 21, 2015, 05:55 PM
        Is the +id placeholder in a chunk that being processed by getResources? Something has to set that placeholder for it to work.

        Yes BobRay.

        The link is well established in one chunk.

        So, ex: www.mydomain.com/modx/my_article_page_with_quipsnippet.html?quip_start=28&quip_limit=10#prefix28 seems to ignore the variables $quip_start and $quip_limit.

        In fact, omitting anchor (ex.: www.mydomain.com/modx/my_article_page_with_quipsnippet.html?quip_start=28&quip_limit=10) works perfectly.

        Thanks [ed. note: abramco last edited this post 11 years, 7 months ago.]
          www.abelmartinez.net
          • 3749
          • 24,544 Posts
          Did you try this?

          www.mydomain.com/modx/my_article_page_with_quipsnippet.html#anchor?quip_start=28&quip_limit=10
            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting
            • 39666
            • 29 Posts
            Quote from: BobRay at Feb 22, 2015, 04:34 PM
            Did you try this?

            www.mydomain.com/modx/my_article_page_with_quipsnippet.html#anchor?quip_start=28&quip_limit=10

            Yes Bob, I did, but same result.
              www.abelmartinez.net
              • 3749
              • 24,544 Posts
              Sorry, I really thought that would work.
                Did I help you? Buy me a beer
                Get my Book: MODX:The Official Guide
                MODX info for everyone: http://bobsguides.com/modx.html
                My MODX Extras
                Bob's Guides is now hosted at A2 MODX Hosting
                • 28042 ☆ A M B ☆
                • 24,524 Posts
                this might work...
                www.mydomain.com/modx/my_article_page_with_quipsnippet.html?quip_start=28&quip_limit=10&blank=0#anchor


                The problem is that whatever is using that quip_limit thinks that the #anchor is part of the value. So adding another dummy key->value pair that nobody uses might work.

                It is correct for the anchor to come at the end, after the query string key->value pairs.
                  Studying MODX in the desert - http://sottwell.com
                  Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                  Join the Slack Community - http://modx.org
                  • 39666
                  • 29 Posts
                  Quote from: sottwell at Feb 23, 2015, 06:41 AM
                  this might work...
                  www.mydomain.com/modx/my_article_page_with_quipsnippet.html?quip_start=28&quip_limit=10&blank=0#anchor


                  The problem is that whatever is using that quip_limit thinks that the #anchor is part of the value. So adding another dummy key->value pair that nobody uses might work.

                  It is correct for the anchor to come at the end, after the query string key->value pairs.

                  I tried, but does not work.
                    www.abelmartinez.net
                    • 4172
                    • 5,888 Posts
                    what do you get, when you create a snippet with name 'print_request':

                    return '<pre>' . print_r($_REQUEST,1) . '</pre>';


                    and put that in the template:

                    [[!print_request]]
                      -------------------------------

                      you can buy me a beer, if you like MIGX

                      http://webcmsolutions.de/migx.html

                      Thanks!
                      • 39666
                      • 29 Posts
                      Array
                      (
                          [q] => blog/plugins-audio/waves/aphex-vintage-aural-exciter.html
                          [quip_start] => 61
                          [quip_limit] => 5
                      )


                      So, the vars are passed
                        www.abelmartinez.net