DittoCal ver. 1.1
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
- Create a new snippet named DittoCal.
- Copy the contents of snippet.dittocal.php into the snippet.
- Create a folder under assets/snippets named DittoCal.
- Upload the file JSON.php into the new directory.
- 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`!]
- 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`!]