We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26085
    • 494 Posts
    Hello
    I have two ditto calls on tha same page.
    1.[!Ditto? &summarize=`1`  &tpl=`portf_chank` &paginate=`1`!] - i use it for gallery
    2.[!Ditto? &parents=`3` &tpl=`li` &debug=`1` &paginate=`0` &summarize=`50` &depth=`2` &filter=`tvclients,[*clients*], 1|pagetitle,[*pagetitle*],2` !] - for filtering priject with tha same client

    On first (start=0) page everything is great
    On Second (start=2) I don’t have 1 value (in ditto (2))
    on 3d (start=2) I don’t have all value.

    http://shop.fast-site.net/9.html live sample
      • 33337
      • 3,975 Posts
      Hi Samz,

      What version of Ditto are you using? Moreover if I am right Ditto doesn’t interpret [*xyz*] in its call.

      For more information on Ditto Filtering, please read: http://ditto.modxcms.com/tutorials/basic_filtering.html

      Hope it helps.

      regards.
        Zaigham R - MODX Professional | Skype | Email | Twitter

        Digging the interwebs for #MODX gems and bringing it to you. modx.link
        • 26085
        • 494 Posts
        Quote from: zi at May 19, 2007, 04:09 AM

        What version of Ditto are you using?
        I am using 096 RC3 with ditto 202


        Quote from: zi at May 19, 2007, 04:09 AM

        Moreover if I am right Ditto doesn’t interpret [*xyz*] in its call.
        It works on http://shop.fast-site.net/9.html

        Quote from: zi at May 19, 2007, 04:09 AM

        For more information on Ditto Filtering, please read: http://ditto.modxcms.com/tutorials/basic_filtering.html

        I know everything about with documentation. smiley
        Thanks for trying help.
          • 11975
          • 2,542 Posts
          Hi,

          not sure to understand your pb but You should add the id parameter to your ditto call.
          the start will be applied on the call from which it’s been activated.

          :-)


          1.[!Ditto? &id=`call1` &summarize=`1`  &tpl=`portf_chank` &paginate=`1`!] - i use it for gallery
          2.[!Ditto? &parents=`3` &tpl=`li` &debug=`1` &paginate=`0` &summarize=`50` &depth=`2` &filter=`tvclients,[*clients*], 1|pagetitle,*pagetitle*],2` !]

          and then add the call1 prefix to your pagination placeholder.

          P.S: there is an extra space in your filter ", 1". You should remove it.
            Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
            • 26085
            • 494 Posts
            Quote from: heliotrope at May 19, 2007, 05:04 AM

            not sure to understand your pb but You should add the id parameter to your ditto call.
            the start will be applied on the call from which it’s been activated.

            it’s don
            Quote from: heliotrope at May 19, 2007, 05:04 AM

            1.[!Ditto? &id=`call1` &summarize=`1` &parents=`[*id*]` &tpl=`portf_chank` &paginate=`1`!] - i use it for gallery
            2.[!Ditto? &parents=`3` &tpl=`li` &debug=`1` &paginate=`0` &summarize=`50` &depth=`2` &filter=`tvclients,[*clients*],1|pagetitle,*pagetitle*],2` !]
            P.S: there is an extra space in your filter ", 1". You should remove it.
            it’s don

            Quote from: heliotrope at May 19, 2007, 05:04 AM

            and then add the call1 prefix to your pagination placeholder.
            I did’t understood how to do it.

            I am using [+pages+] placeholder for paginate

              • 11975
              • 2,542 Posts
              I am using [+pages+] placeholder for paginate

              Ditto adds an underscore to the id so [+call1_pages+] should do the trick.

              :-)
                Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
                • 26085
                • 494 Posts
                [!Ditto? &summarize=`1` &parents=`[*id*]`  &tpl=`portf_chank` &paginate=`1`!]
                
                <div class="pages">
                <span class="left">[+call1_pages+]<span class="ditto_currentpage"> </span>
                </span> 
                
                <span class="right"><a href="[*pic_link*]" title="[*pic_title*]">посмотреть сайт</a></span> </div>  
                
                <div class="client">
                <h1>[*pagetitle*]</h1>
                <h2>Клиент: [*clients*]
                </h2>
                </div>
                <div id="col1">
                [*content*]
                
                <p class="teg">Теги: {{chank_tags}}</p>          
                </div>
                
                <div id="col2">
                <strong>Eщё проекты этого клиента</strong>
                <ul>
                
                [!Ditto? &parents=`3` &tpl=`li` &debug=`1` &paginate=`0` &summarize=`50` &depth=`2` &filter=`tvclients,[*clients*],1|pagetitle,[*pagetitle*],2` !]
                </ul>
                
                

                Am I right?
                I don’t have pages in whis case. But then i go to 9.html&start=1 result is tha same
                  • 11975
                  • 2,542 Posts
                  Could you please provide your ditto version ?


                  If you are running Ditto 2 you don’t have to prefix the tv anymore.

                  So you filter should be &filter=`clients,....`

                  :-)
                    Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
                    • 26085
                    • 494 Posts
                    Quote from: heliotrope at May 19, 2007, 06:15 AM

                    Could you please provide your ditto version ?
                    If you are running Ditto 2 you don’t have to prefix the tv anymore.
                    So you filter should be &filter=`clients,....`
                    Ditto 202 MODX 096 rc3 &filter=`clients,....` or &filter=`tvclients,....` it does not matter.

                    You can see my ditto   "Debug Console" ob with pages
                    "Debug Console"  http://shop.fast-site.ru/9.html?start=1&amp;ditto_debug=open

                    http://shop.fast-site.ru/9.html&start=0 - hear everything works great.
                    http://shop.fast-site.ru/9.html&start=1 - mis 1 result
                    http://shop.fast-site.ru/9.html&start=2 - ...
                    filtering result is tha same  "prefetch data" and Selected IDs
                    but
                    "Retreived data" is different

                    Thanks everybody.

                    Correct call in my case is:

                    [!Ditto? &summarize=`1` &id=`call1` &parents=`[*id*]` &tpl=`portf_chank` &paginate=`1`!]

                    <div class="pages">
                    <span class="left">[+call1_pages+]<span class="ditto_currentpage"> </span>
                    </span>