We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18397
    • 3,250 Posts
    What happens when you click on the link? Can you copy the output Ditto generates and paste it here? Thanks.
      • 1549
      • 20 Posts
      nothing happens, the page changes to index.php?id=20 (example), but i still see my three posts summarized ( just like i see them on the normal index )
        • 18397
        • 3,250 Posts
        I believe that may be a problem with your install of MODx and not Ditto. Either way, the only way I can diagnose it further would be with access to your MODx install. If you would like me to take a look, PM me with further details.
          • 4273
          • 356 Posts
          I’ve noticed when using ditto that clicking on the page > 1 2 3 next below the summaries don’t work, they redirect to site index, it worked with newsletter snippet though but for some reason not with ditto is there any new items that need to be added for ditto ?

          [!Ditto? &startID=`26` &tpl=`NewsListingTemplate` &sortdir=`asc` &summarize=`3` &paginate=`1` &alwaysshow=`1`!]

          Showing [+start+] - [+stop+] of [+total+] Articles
          [+previous+] [+pages+] [+next+]
            SMF Bookmark Mod - check it out
            http://mods.simplemachines.org/index.php?mod=350
            • 18397
            • 3,250 Posts
            Please check the parameter list that came with the download as it contains all of the changes. The pagination link code did not change between NewsListing (not newsletter) and Ditto.
              • 18397
              • 3,250 Posts
              Ditto 1.0.1 is out. Please get it here: http://modxcms.com/forums/index.php/topic,4951.0.html
                • 30948
                • 3 Posts
                Mark, thanks for the update... works as advertised! smiley

                I did have to remove the stray ’<?php ’ from the beginning of the snippet though, otherwise modX complained with a parse error (unexpected ’<’ found).

                Cheers,
                Ulrich
                  • 17814
                  • 2 Posts
                  Hi

                  Im using the Modx cms system for the first time and its great...well done guys smiley

                  Im having a bit of a problem installing Ditto though?
                  What I am trying to do is creat a news/news archive page and if my understanding is correct, ditto is what I want to be using?

                  So far I have;

                  >>> copied what is in snippet.ditto.php to a new snippet and called it DItto.
                  >>> copied the assets/snippets/ditto folder and its contents into assets/snippets on the server
                  >>> inserted [[Ditto? &tpl=`DittoTemplate` &startID=`2` &summarize=`3` &commentsChunk=`FormBlogComments`]] in my news page where I want it to appear.
                  This now results in me gettingthe following message where my news will go;
                  &tpl is blank or you have a typo in the chunk name, please check it.

                  Im not too hot with php as you can probably see by the fact im stuck!
                  Ive gone through the documentation but I cant find an idiots install guide anywhere.
                  Could anyone help me out? undecided

                  cheers

                  mac
                    • 11975
                    • 2,542 Posts
                    Hi,

                    to manage the ditto output, you need to create a chunk (&tpl param) which looks something like this.

                    <div>
                    <h3>[+longtitle+]</h3>
                    <p>[+summary+]</p>
                    <a href="[~[+id+]~]">More on this story</a>
                    </div>

                    Where the [+placeholders+] will be parsed by diito and replaced with values.
                      Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
                      • 17814
                      • 2 Posts
                      Hi

                      Thanks for your help. I still dont really get where you would enter the actual news information though?

                      If anyone would like to take a look at my actual site and code, if you message me I will set you up a user/pass to access the admin.

                      Cheers

                      mac

                      This discussion is closed to further replies. Keep calm and carry on.