27 votes

DateFolders

This package creates Datefolders (year/month(/day)) for the specified doctype for Umbraco 6.1.x+. For older versions please use v1.4

Behavior

- When you create a document with doctype "itemDocType", this package will automatically create year/month/day folders for it
- When you edit the "itemDateProperty", the document is automatically moved to the correct year/month/day folder
- Automatically cleans up empty year, month and day folders
- Orders the items in the year, month and dayfolders by "itemDateProperty" with every action

Configuration

Add these keys/values to your appSettings section in the web.config:
- Key: "datefolders:ItemDocType" - the doctype alias to create datefolders for (e.g. "newsItem") - comma separated values are allowed for multiple doctype aliases
- Key: "datefolders:ItemDateProperty" - the property of the itemDocType to read the date from (e.g. "startDate") (don't add this key if you just want to use the document's create date)
- Key: "datefolders:DateFolderDocType" - the doctype to use for creating the year/month/day folders (e.g "DateFolder")
- Key: "datefolders:CreateDayFolders" - boolean indicating whether or not day folders should be created

- Key: "datefolders:OrderByDecending"  - boolean indicating sort order for date folders (default: false)

Changelog

Version 2.1.2
 - Fixed nested date folders.
 - Fix to sort

Version 2.1.1
- Fixed cast error when using Date picker with DB date type.

Version 2.1
- Removed legacy configuration settings
- Added datefolders:OrderByDecending
- Implomented fix for 'Publish At' given by - Wayne Godfrey
- Refactored to reduce code complexity

Version 2.0.1
- Fix to order by child name

Version 2.0
- Updated to use umbraco v6 api
- Fixed ordering to handle non date folders

Version 1.4
- Removed Threading (Threading can cause the back-end to be out-of-sync, therefore removed)
- Changed configuration keys, added prefix (legacy still works)
- Added day folders feature (configurable, off by default)
- Fixed silly order by hard-coded propertyAlias bug

Version 1.3
- Better exception handling (speechbubble)
- Exception get's handled when the datefoler document type doesn't exist
- Month folders are now named with a leading zero if the month number is a single number (01, 02 etc.)
- Exception get's handled when a date item is created under the 'Content' root node

Version 1.2
- Support for multiple docTypes (comma separated)

Version 1.1
- Tree get's synced automatically

 

Also, check out AlphabetFolders, DateFolders' little brother: http://our.umbraco.org/projects/developer-tools/alphabetfolders

Screenshots

Package owner

Stefan Kip

Stefan Kip

Stefan has 4012 karma points

Package Compatibility

This package is compatible with the following versions as reported by community members who have downloaded this package:
Untested or doesn't work on Umbraco Cloud
7.12.x (untested)
7.11.x (untested)
7.10.x (untested)
7.9.x (untested)
7.8.x (untested)
7.7.x (100%)
7.6.x (untested)
7.5.x (untested)
7.4.x (untested)
7.3.x (untested)
7.2.x (100%)
7.1.x (untested)
7.0.x (untested)
6.1.x (100%)
6.0.x (untested)

You must login before you can report on package compatibility.

Package Information

  • Package owner: Stefan Kip
  • Contributors: Manuel , Adam Nelson , Matthew Wise
  • Created: 17/08/2010
  • Current version 2.1.2
  • .net Version 4.0,4.5
  • License MIT
  • Downloads: 10872