We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14779
    • 256 Posts
    I’d like a small sidebar-esque listing of the 5 latest articles published in a certain container on my site. How would I do this? I wasn’t sure if I use Ditto or Reflect, and the only example on the demo content uses Listindexer
      PM me to find out how you can get a FREE ipad 2!
      • 16183
      • 1,390 Posts
      Ditto’s your best friend for this.


      Ditto
      Ditto is a snippet built for MODx CMS that aggregates documents to create blogs, article/news collections, and more,with full support for templating.

      http://ditto.modxcms.com/

      Reflect

      Generates date based archives using Ditto

      cheers/k

        • 14779
        • 256 Posts
        I figured ditto would be the best option, but I am unsure how to get it working.
          PM me to find out how you can get a FREE ipad 2!
          • 33997
          • 150 Posts
          There are tutorials on the Ditto site, but the basic usage is fairly straight forward. Make your snippet call and go through the various parameters, adding in calls for each parameter that needs to be changed from the default.
          Tutorials: http://ditto.modxcms.com/tutorials.html
          Parameters: http://ditto.modxcms.com/files/snippet-ditto-php.html

          Don’t forget to use backticks (`) for the values, not single quotes (’). Backticks are the top left key usually, underneath ESC.
            "Great spirits have always encountered violent opposition from mediocre minds." -Albert Einstein
            • 14779
            • 256 Posts
            Thanks! I’d seen the tutorial pages before, but had forgotten about them.
              PM me to find out how you can get a FREE ipad 2!