DittoCal
Votes: 57
Tags: Navigation, Blogging, snippet, calendar
Submitted: Nov 2, 2007
Released: Nov 2, 2007
Downloads: 2142
License: GPL - GNU Public
DittoCal 1.3
Works with the following Version(s): 0.9.5 | 0.9.6
DittoCal creates a customizable calendar for your Modx blog. The calendar allows your users to navigate through your blog posts by clicking on the date to view the post.
Download
- repo-1699.zip (2142 downloads)
Description
You may be asking why the name DittoCal, well you have to use the Ditto snippet to setup the data for your calendar. Get the latest version of Ditto here.
You must use Ditto version 2 or higher for this calendar to function correctly.
Planned Updates: Full Ajax Functionality
Parameters &calSource string - the path to the document or document-id created to output tour posts in json format. (i.e. http://www.muddydogpaws.com/blog_json_output) &linkClass string (default: cal_link) - class for table cells (td) that contain links. &dayNameLength 0|1|2|3|4 (default: 3) - how many characters of the week day name to display, 4 shows full name. &firstDay 0|1|2|3|4|5|6 (default: 0) - Which day should start the week. 0=sunday, 1=monday, etc... &showPn 0|1 (default: 1) - Show the previous/next links with your calendar. &debug 0|1 (default: 0) - Set to 1 t oview debug information. &ph string - Name of the placeholder you want to output to. &activeDay string (default: curDay) - Class to use for current post when clicked from calendar. &setLocal string locale | 0 (default: 0) - set the category LC_TIME for the php-func setlocale &dateSelection string time | 0 (default: 0) - start-month for the calendar (with values of the php-func strtotime) &futureDate 1|0 (default: 0) - activate the link for a future date (next link) with a value
In the snippet code there is an array named monthLinks. This array allows you to specify a link to a page on your site for each month of the calendar. When a link is specified, the month name will become the hyperlink. An example use of this would be if you have setup a page that contains the posts for the month of March 2006.
To see this calendar working you can view it on my site here: http://www.muddydogpaws.com/notebook
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`!
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. Add the snippet call to the pages you want your calendar displayed on.
Example Snippet Call:
!DittoCal? &calSource=`http://www.muddydogpaws.com/blog_json_output` &dayNameLength=`1`!
Updates
Updates:- $calSource: The source can be now also a document-id, for a easier internal use
- $setLocal (Optional parameter): Added the php-func setlocale in the snippet, for non-english sites
- $dateSelection: (Optional parameter): Set a start-month for the calendar (with values of the php-func strtotime).
- $futureDate: (Optional parameter): Activate the link for a future date (next link) with a value (1/0).
- htmlspecialchars removed from nav links, because: When the global option "valid xhtml" is active, the link become a double ampersand -> example.html?cal_month=11&cal_year=2007
Sub-Packages
AKi_LinkDittoCal
It links the current document with the DittoCal calendar and updates DittoCal.
Previous Releases
1.2
Votes: 36
Tags: Navigation, Blogging, snippet, calendar
Submitted: Mar 18, 2007
Released: Mar 18, 2007
Downloads: 1696
License: GPL - GNU Public
Package Website
DittoCal 1.2
Works with the following Version(s): 0.9.5
DittoCal creates a customizable calendar for your Modx blog. The calendar allows your users to navigate through your blog posts by clicking on the date to view the post.
Download
- repo-1387.zip (1696 downloads)
Description
You may be asking why the name DittoCal, well you have to use the Ditto snippet to setup the data for your calendar. Get the latest version of Ditto here.
You must use Ditto version 2 or higher for this calendar to function correctly.
Planned Updates: Full Ajax Functionality
Parameters &calSource string - the path to the document or document-id created to output tour posts in json format. (i.e. http://www.muddydogpaws.com/blog_json_output) &linkClass string (default: cal_link) - class for table cells (td) that contain links. &dayNameLength 0|1|2|3|4 (default: 3) - how many characters of the week day name to display, 4 shows full name. &firstDay 0|1|2|3|4|5|6 (default: 0) - Which day should start the week. 0=sunday, 1=monday, etc... &showPn 0|1 (default: 1) - Show the previous/next links with your calendar. &debug 0|1 (default: 0) - Set to 1 t oview debug information. &ph string - Name of the placeholder you want to output to. &activeDay string (default: curDay) - Class to use for current post when clicked from calendar. &setLocal string locale | 0 (default: 0) - set the category LC_TIME for the php-func setlocale &dateSelection string time | 0 (default: 0) - start-month for the calendar (with values of the php-func strtotime) &futureDate 1|0 (default: 0) - activate the link for a future date (next link) with a value
In the snippet code there is an array named monthLinks. This array allows you to specify a link to a page on your site for each month of the calendar. When a link is specified, the month name will become the hyperlink. An example use of this would be if you have setup a page that contains the posts for the month of March 2006.
To see this calendar working you can view it on my site here: http://www.muddydogpaws.com/notebook
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`!
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. Add the snippet call to the pages you want your calendar displayed on.
Example Snippet Call:
!DittoCal? &calSource=`http://www.muddydogpaws.com/blog_json_output` &dayNameLength=`1`!
Updates
18-MAR-07 - Mark Kaplan - Made compatible with Ditto 2.0.1. Added &id and &landing for usewith Ditto. If you have a Ditto call on the document with the same id as
&landing and ID as &id with &extenders=`dateFilter`, DittoCal will pass
the required information to filter the results to only show documents on
that day.
1.1
Votes: 39
Tags: Navigation, Blogging, snippet, calendar
Submitted: Jul 17, 2006
Released: Jul 17, 2006
Downloads: 2313
License: GPL - GNU Public
Package Website
DittoCal 1.1
Works with the following Version(s): 0.9.2.1
DittoCal creates a customizable calendar for your Modx blog. The calendar allows your users to navigate through your blog posts by clicking on the date to view the post.
Download
- repo-748.zip (2313 downloads)
Description
You may be asking why the name DittoCal, well you have to use the Ditto snippet to setup the data for your calendar. Get the latest version of Ditto here.
You must use Ditto version 2 or higher for this calendar to function correctly.
Planned Updates: Full Ajax Functionality
Parameters &calSource string - the path to the document or document-id created to output tour posts in json format. (i.e. http://www.muddydogpaws.com/blog_json_output) &linkClass string (default: cal_link) - class for table cells (td) that contain links. &dayNameLength 0|1|2|3|4 (default: 3) - how many characters of the week day name to display, 4 shows full name. &firstDay 0|1|2|3|4|5|6 (default: 0) - Which day should start the week. 0=sunday, 1=monday, etc... &showPn 0|1 (default: 1) - Show the previous/next links with your calendar. &debug 0|1 (default: 0) - Set to 1 t oview debug information. &ph string - Name of the placeholder you want to output to. &activeDay string (default: curDay) - Class to use for current post when clicked from calendar. &setLocal string locale | 0 (default: 0) - set the category LC_TIME for the php-func setlocale &dateSelection string time | 0 (default: 0) - start-month for the calendar (with values of the php-func strtotime) &futureDate 1|0 (default: 0) - activate the link for a future date (next link) with a value
In the snippet code there is an array named monthLinks. This array allows you to specify a link to a page on your site for each month of the calendar. When a link is specified, the month name will become the hyperlink. An example use of this would be if you have setup a page that contains the posts for the month of March 2006.
To see this calendar working you can view it on my site here: http://www.muddydogpaws.com/notebook
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`!
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. Add the snippet call to the pages you want your calendar displayed on.
Example Snippet Call:
!DittoCal? &calSource=`http://www.muddydogpaws.com/blog_json_output` &dayNameLength=`1`!
Updates
Here is a list of the new features:Placeholder output support - there is now a parameter you can set to output the calendar to a placeholder.Future Month Removal - The next link will not be displayed when user reaches the last post.When a user clicks a day in the calendar the month displayed will stay the same when the new page loads. The selected post will have the class specified in the parameter &activeDay.Debug Output - set the parameter debug equal to 1 to see information to help fix errors.1.0
Votes: 35
Tags: Navigation, Blogging, snippet, calendar
Submitted: Jul 10, 2006
Released: Jul 10, 2006
Downloads: 848
License: GPL - GNU Public
Package Website
DittoCal 1.0
Works with the following Version(s): 0.9.2.1
This version has been marked as deprecated. Please use a newer version.
DittoCal creates a customizable calendar for your Modx blog. The calendar allows your users to navigate through your blog posts by clicking on the date to view the post.
Download
- repo-698.zip (848 downloads)
Description
You may be asking why the name DittoCal, well you have to use the Ditto snippet to setup the data for your calendar. Get the latest version of Ditto here.
You must use Ditto version 2 or higher for this calendar to function correctly.
Planned Updates: Full Ajax Functionality
Parameters &calSource string - the path to the document or document-id created to output tour posts in json format. (i.e. http://www.muddydogpaws.com/blog_json_output) &linkClass string (default: cal_link) - class for table cells (td) that contain links. &dayNameLength 0|1|2|3|4 (default: 3) - how many characters of the week day name to display, 4 shows full name. &firstDay 0|1|2|3|4|5|6 (default: 0) - Which day should start the week. 0=sunday, 1=monday, etc... &showPn 0|1 (default: 1) - Show the previous/next links with your calendar. &debug 0|1 (default: 0) - Set to 1 t oview debug information. &ph string - Name of the placeholder you want to output to. &activeDay string (default: curDay) - Class to use for current post when clicked from calendar. &setLocal string locale | 0 (default: 0) - set the category LC_TIME for the php-func setlocale &dateSelection string time | 0 (default: 0) - start-month for the calendar (with values of the php-func strtotime) &futureDate 1|0 (default: 0) - activate the link for a future date (next link) with a value
In the snippet code there is an array named monthLinks. This array allows you to specify a link to a page on your site for each month of the calendar. When a link is specified, the month name will become the hyperlink. An example use of this would be if you have setup a page that contains the posts for the month of March 2006.
To see this calendar working you can view it on my site here: http://www.muddydogpaws.com/notebook
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`!
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. Add the snippet call to the pages you want your calendar displayed on.
Example Snippet Call:
!DittoCal? &calSource=`http://www.muddydogpaws.com/blog_json_output` &dayNameLength=`1`!



