We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3011
    • 6 Posts
    Hello. I’m using Ditto 1.0.2 to display my blog posts. I’ve set up tagging via a TV using the method described here:
    http://modxcms.com/forums/index.php/topic,8735.0.html

    What I want to accomplish is more control over my archiving of previous entries. For example I want to have links on the side sorted by month, and also by category. For the category, what I’m planning to do is set up categories like "Technology" with a ditto call that would display all articles with a "software" or "tech" or "gadgets" tag. Basically I’d be grouping my tags into categories and using ditto to display all posts matching those tags (and thus relating to the requested category). I haven’t tried it yet, but I think this is within my current (very limited) knowledge laugh

    My question is, how can I accomplish my month-by-month archiving? For example, how can I setup Ditto to ONLY display posts from November 2006?

    Thanks in advance for your help!
      • 18397
      • 3,250 Posts
      You can do this in Ditto 1.1 Beta 2 using year and month in the URL string where they are the corresponding numbers.
        • 3011
        • 6 Posts
        Thanks for the quick reply Mark!

        One more question. Prior to using MODx+Ditto I use to use blogger. On the side it would categorize posts by month (basically the subject of my initial post).

        I noticed that the default output of the archive in ditto 1.0.2 looks like this:

        * November 2006
        o Test Entry 3 (Sun Nov 19, 2006 @ 09:10 PM)
        o Test Entry 4 (Sun Nov 19, 2006 @ 09:11 PM)

        Is there any way to gain control over the display of the output of the archives? Or create a snippet that would JUST display the archived part? If so, I think I would be able to use Ditto’s default output + CSS to generate that list I want.

        If it’s not possible, it seems like according to your post about Ditto 1.1, I’d need to make a menu with links like this:

        <a href="http://www.url.com/dittodisplayer?month=11&year=2006">November 2006</a>
        <a href="http://www.url.com/dittodisplayer?month=12&year=2006">December 2006</a>

        That would work just fine, but it means at the beginning of each month, I’d have to manually create a new link.

        Thanks again
          • 18397
          • 3,250 Posts
          Yes, use Reflect (the successor to Ditto’s archive component) included in Ditto 1.1b2
            • 3011
            • 6 Posts
            Perfect, thanks again Mark.