DittoCal ver. 1.1 (Evolution)

The DittoCal snippet creates a monthly calendar for displaying your blog posts or any other document from MODx. DittoCal takes its data from a JSON page created by the Ditto snippet and then converts it into a calendar showing the most recent document first. The output also contains links to previous months so the user can view all of the posts.

Install Instructions

  1. Create a new snippet named DittoCal.
  2. Copy the contents of snippet.dittocal.php into the snippet.
  3. Create a folder under assets/snippets named DittoCal.
  4. Upload the file JSON.php into the new directory.
  5. Create a new document with the following settings:
    • title: blog json output
    • template: blank
    • show in menu: no
    • published: yes
    • searchable: no
    • content type: text/plain
    • document content: [!Ditto?startID=`yourblogfolder` &summarize=`100` &format=`json` &dateFormat=`%d-%m-%Y` &sortDir=`desc`!]
    This document is used to output your post data so that it can be read into the calendar. You should set the startId to your blog folder and set summarize to the max number of posts you expect to have. Leave everything else the same as above.
  6. Add the snippet call to the pages you want your calendar displayed on.

Basic Usage

[!DittoCal? &calSource=`http://www.muddydogpaws.com/blog_json_output` &dayNameLength=`1`!]
logoLeaving tracks across the web.