We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27408
    • 33 Posts
    I am trying to get Ditto to display 3 blog posts in 3 seperate divs.
    (example: http://i49.tinypic.com/v2zcdf.jpg)
    The next 3 blog items should go on a new page using the navigation that will be put under these three divs. There are seperator divs between them.

    These are the Ditto calls for the first two divs. But its not working how it should be.
          [[Ditto? &id=`1` &parents=`53` &display=`3` &removeChunk=`Comments` &tpl=`ditto_blog` 
    &paginate=`1` &extenders=`summary,dateFilter` &paginateAlwaysShowLinks=`1` &tagData=`documentTags`]]

          [[Ditto? &id=`2` &parents=`53` &display=`3` &removeChunk=`Comments` &tpl=`ditto_blog` 
    &paginate=`1` &extenders=`summary,dateFilter` &paginateAlwaysShowLinks=`1` &tagData=`documentTags`]]


    I tried using the documentation provided, but its not making things clear to me atm.
      • 364
      • 32 Posts
      I’m having an issue with changing the paginate next and previous text. I have tried a number of options though, all it does is make the next and previous text disapear. i cant get any custom text to appear.

                  <div id="Main-Content">
                      
                      
                      <div id="Portfolio_Container">
                      [!Ditto?  &parents=`[*id*]`  &depth=`3` &display=`1` &total=`10` &paginate=`1` &paginateAlwaysShowLinks= `1`  &sortDir=`ASC` &tpl=`Portfolio_Template`  &showPublishedOnly=`1` &extenders=`request` &filter=`id,50,2|id,51,2|id,52,2` &tplPaginatePrevious=`<` &tplPaginateNext=`>` !]
          
                          <div id="ditto_pages"> 
                              [+previous+] [+next+] [+pages+]  
                          </div> 
      
      				</div>
      
                </div>


      whats the correct way to only have the ">" or "<" show in &tplPaginatePrevious=`<` &tplPaginateNext=`>` i’m basicaly only wanting to remove the text for next and previous and geeking the greater or lesser than.

      I have also tried the html code for the < and > that didn’t work either i have been able to find much in the way of documentation. on this other than http://ditto.modxcms.com/tutorials/pagination.html which didn’t help

      thanks for any help
      • Have you looked in the ditto/lang folder and check your language file? They are in there.
        $_lang['prev'] = "< Previous";
        $_lang['next'] = "Next >";
        
          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
          • 34162
          • 1 Posts
          hello guys, nice to mee u all here, sry i just register and straight to ask question..because im stuck at pagination page...im very new using modx, i alredy try and read from page 1 but none of my changed work.

          so this is my ditto call
          [!Ditto? &parents=`5` &orderBy=`createdon ASC` &display=`2` &total=`2` &paginateAlwaysShowLinks='1' &tpl=`intro_blog` paginate='1' &tplPaginatePage=`pageSplitter` &tplPaginateCurrentPage=`currentPageSplitter`!]
          


          bellow that code i put this

          Showing [+start+] - [+stop+] of [+total+] Articles | Page [+currentPage+] of [+totalPages+]
          
          [+previous+] [+pages+] [+next+]
          


          my refference :
          http://www.pogwatch.com/ditto/ditto-pagination.html
          http://ditto.modxcms.com/tutorials/pagination.html

          im not using phx plugin..this is the result of my page, not showing the pagination link



          fyi, im create new chunk name "intro_blog" the code is
          <h3><a href="[~[+id+]~]">[+menutitle+]</a></h3>
          <p>[+introtext+] &nbsp<a href="[~[+id+]~]">Read More... </a></p>


          pls if any suggestion for me..sory to much askng and write
          thanks
          • What’s the point of having the pagination if you are only displaying two items?
            &display=`2` &total=`2`
              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
              • 34162
              • 1 Posts
              Quote from: sottwell at Jun 10, 2010, 05:42 AM

              What’s the point of having the pagination if you are only displaying two items?
              &display=`2` &total=`2`

              thanks softtwell for quick replay

              btw i have 6 article that already pubished status..i set "2" show just make sure the pagination is on
              is there anything wrong from my code

              thanks
                • 364
                • 32 Posts
                Do you have your container pages marked as uncached? I had this issue where pagnation wouldn’t work, if i was caching the container folders. as soon as i made them unchaced. the pagnation worked. more so if your not using PHX. to check edit your container page, then click the settings tab. the cache option is towards the bottom.


                i would also throw in
                 &hideFolders=`1` &seeThruUnpub=`0`
                this hides the container folders, and the other helps when unpublishing a container, but the children are still marked as published. you will probably want this later on...

                Try removing
                &tplPaginatePage=`pageSplitter` &tplPaginateCurrentPage=`currentPageSplitter`
                until you get the basic pagination working. I’ve had some issues where these caused issues when i didn’t have them set right.
                  • 34162
                  • 1 Posts
                  Quote from: acidic at Jun 10, 2010, 05:13 PM

                  Do you have your container pages marked as uncached? I had this issue where pagnation wouldn’t work, if i was caching the container folders. as soon as i made them unchaced. the pagnation worked. more so if your not using PHX. to check edit your container page, then click the settings tab. the cache option is towards the bottom.

                  i would also throw in
                   &hideFolders=`1` &seeThruUnpub=`0`
                  this hides the container folders, and the other helps when unpublishing a container, but the children are still marked as published. you will probably want this later on...

                  Try removing
                  &tplPaginatePage=`pageSplitter` &tplPaginateCurrentPage=`currentPageSplitter`
                  until you get the basic pagination working. I’ve had some issues where these caused issues when i didn’t have them set right.


                  thanks acidic for the information...
                  and yes i have seen the chache list on my setting tab container blog post.
                  i have uncheck that and remove the "&tplPaginatePage=`pageSplitter` &tplPaginateCurrentPage=`currentPageSplitter`" but now still it not work..but thansk for the information, maybe i need to search more resource about this issue smiley

                  ------ updated

                  its work..my fault..im using the ’ instead ` at ditto call
                  grin
                    • 36760
                    • 136 Posts
                    I'm currently having issues with getting the pagination to work in Modx Evo 1.0.5. I've read around this thread and other areas on the forums, but can't seem to spot what's incorrect.

                    My Ditto call and pagination placeholders looks like this:
                    [[Ditto? &id=`print-gallery` &tpl=`print_gallery_tpl` &paginate=`1` &display=`2` &paginateAlwaysShowLinks=`1`]]
                    
                    [+previous+] [+pages+] [+next+]


                    PHx is installed on the site, and the page is set to be un-cacheable.

                    I've tried removing my &tpl parameter to use the default Ditto output, with no luck.

                    If I remove the pagination parameters and set &display to be 5 (current number of articles), they all display fine.

                    I'm helping someone out mid-project, so I'm not entirely familiar with the setup to know if anything else could be interfering, so if you need anymore information let me know.
                      • 16278
                      • 928 Posts
                      &id=`print-gallery`

                      If you use an ID in the Ditto call, you need to prefix the placeholders with that ID plus an underscore:
                      [+print-gallery_previous+] [+print-gallery_pages+] [+print-gallery_next+]


                      Personally, I avoid hyphens in element names, I think they can cause problems due to ambiguity with minus signs in some contexts.

                      :) KP