We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37246
    • 128 Posts
    Does anyone happen to know where [+paging] is built?
      I LOVE MODX! | greyskymedia.com
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      core/components/articles/model/articles/articlescontainer.class.php, line 337.
        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
        • 37246
        • 128 Posts
        line 348 is it!!!! YAY!!!! +1 for Ms. Ottwell!
          I LOVE MODX! | greyskymedia.com
          • 38878
          • 255 Posts
          Sotwell ftw! Lifesaver. Now why would anyone hardcode styles like that? Wasted a good hour...
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            Indeed, Articles is a bit... inflexible.
              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
              • 37246
              • 128 Posts
              Quote from: harveyev at Sep 01, 2012, 01:28 PM
              Sotwell ftw! Lifesaver. Now why would anyone hardcode styles like that? Wasted a good hour...
              ONLY AN HOUR!!! YOU LUCKY S.____ smiley
                I LOVE MODX! | greyskymedia.com
                • 42046
                • 436 Posts
                I've just had this exact same problem. My pagination doesn't use a UL list and not having the pageNavOuterTpl in Articles means I had to alter the hardcoding to format it properly.

                This really needs to be put in the list for the next update. Having to re-alter the php file if there's an articles update is rather awkward.
                  • 29661
                  • 116 Posts
                  You can use Page Nav Var variable for placeholder in container template, just replace [[+paging]] with
                  [[!+page.nav:notempty=`<div>[[!+page.nav]]</div>`]]

                  And no UL anymore.
                    --
                    John
                    @theboxer
                    • 39678
                    • 68 Posts
                    this link is the solution that there is no solution i think: http://rtfm.modx.com/extras/revo/getpage#getPage-PageNavigationTemplateProperties

                    you can't change it (see 'Page Navigation Template Properties')
                      • 31255
                      • 118 Posts
                      Quote from: TheBoxer at Apr 07, 2013, 04:59 AM
                      You can use Page Nav Var variable for placeholder in container template, just replace [[+paging]] with
                      [[!+page.nav:notempty=`<div>[[!+page.nav]]</div>`]]

                      And no UL anymore.

                      That is just what needed.

                      BUT where I define a class for example default Page Active Tpl is:
                      <li[[+activeClasses]]><a[[+activeClasses:default=` class="active"`]][[+title]] href="[[+href]]">[[+pageNo]]</a></li>


                      Or do I have to define that in the tpl?

                        Tassu, webmaster of Valokammi