We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36549
    • 572 Posts
    Hi Bruno,
    I have another issue in that the pagination for pages is not displaying:-/
    It was working and is set up correctly as far as i can tell but it isn't working now. Occasionally it works if i keep changing the language but it's intermittent:
    <ul class="pageList">
    [![!+page.nav]]
    </ul>

    Any idea what the issue could be?
    Can i provide more info?
      www.9thwave.co.uk
         WEB | DESIGN | PRINT
      • 4172
      • 5,888 Posts
      what is your getPage - call?
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 36549
        • 572 Posts
        I have this on a resource:
        [[!pdoPage?
            &element=`pdoResources`
            &parents=`39`
            &loadModels=`migxmultilang`
            &prepareSnippet = `mmlTranslatePdoToolsRow`
            &includeContent=`1`
            &includeTVs=`mml_title,mml_content,mml_county,mml_creator,mml_dateFrom,
                        mml_dateTo,mml_description,mml_introtext,mml_location,
                        mml_longtitle, mml_menutitle, mml_owner,mml_storyUrl,
                        mml_tags, mml_themeList,mml_uploadedBy, articleCategory`
            &prepareTVs=`1` 
            &showHidden=`1`
            &hideContainers=`1`
            &tpl=`storyItemListTpl`
            &tvFilters=`articleCategory==articleStory`
            &limit=`12`
        ]]


        I have this on the Articles page which is page id #39:
        [[!+page.nav:notempty=`
        <div class='paging'>
        	<ul class='pageList'>
        		[[+paging]]
        	</ul>
        </div>
        `]]
          www.9thwave.co.uk
             WEB | DESIGN | PRINT
          • 4172
          • 5,888 Posts
          maybe you will need to play a bit with absolute uncached tags (which are replaced by mmlCache into uncached tags after parsing and caching and let MODX parse the rest)
          does it work with

          [![!pdoPage?
              &element=`pdoResources`
              &parents=`39`
              &loadModels=`migxmultilang`
              &prepareSnippet = `mmlTranslatePdoToolsRow`
              &includeContent=`1`
             
           &includeTVs=`mml_title,mml_content,mml_county,mml_creator,mml_dateFrom,
                          mml_dateTo,mml_description,mml_introtext,mml_location,
                          mml_longtitle, mml_menutitle, mml_owner,mml_storyUrl,
                          mml_tags, mml_themeList,mml_uploadedBy, articleCategory`
              &prepareTVs=`1` 
              &showHidden=`1`
              &hideContainers=`1`
              &tpl=`storyItemListTpl`
              &tvFilters=`articleCategory==articleStory`
              &limit=`12`
          ]]


          and

          [![!+page.nav:notempty=`
          <div class='paging'>
              <ul class='pageList'>
                  [![!+paging]]
              </ul>
          </div>
          `]]
            -------------------------------

            you can buy me a beer, if you like MIGX

            http://webcmsolutions.de/migx.html

            Thanks!
            • 36549
            • 572 Posts
            Thanks Bruno, that seems to have solved the problem.
              www.9thwave.co.uk
                 WEB | DESIGN | PRINT
              • 28042 ☆ A M B ☆
              • 24,524 Posts
              An interesting idea Bruno suggested on a different topic altogether triggered an interesting thought. What about a hybrid ClassExtender extended resource in combination with MIGx to simplify the multi-language solution?

              In particular, that template/chunk template business always bothers me.
                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
                • 4172
                • 5,888 Posts
                Or just a plugin, some like Jako's
                https://github.com/Jako/SwitchTemplate
                which would do all the mmlCache-stuff

                I was allready thinking about that, but couldn't have some time for experimenting with it.
                  -------------------------------

                  you can buy me a beer, if you like MIGX

                  http://webcmsolutions.de/migx.html

                  Thanks!
                  • 28042 ☆ A M B ☆
                  • 24,524 Posts
                  Well, now there's three functional multi-language methods to choose from, contexts with Babel, MigxMultiLang, and Lingua, so tweaking and fine-tuning isn't urgent.
                    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
                    • 36549
                    • 572 Posts
                    Hi,
                    I am having issues with phpthumbof caching image files and so newly uploaded images are sometimes not shown until i manually clear the assets/components/phpthumbof/cache directory.
                    I am unsure how to troubleshoot this one and wonder if there is a way around it?
                      www.9thwave.co.uk
                         WEB | DESIGN | PRINT
                      • 4172
                      • 5,888 Posts
                      I don't think, this is a migxMultiLang - issue.
                      I would try pthumb.
                      Not sure, if pthumb will fix that, though.
                        -------------------------------

                        you can buy me a beer, if you like MIGX

                        http://webcmsolutions.de/migx.html

                        Thanks!