3 votes

Multi Date Picker

The Multi Date Picker package is an Umbraco data type for creating a collection of dates within Umbraco. An editor can add, edit and delete dates within a property on a page. This package reuses Umbraco's built in date picker.

Installation

The Multi Date Picker package can be installed via the package's page on our.umbraco.org or via NuGet. If installing via NuGet, use the following package manager command:

Install-Package RB.MultiDatePicker

Configuration

Setup a new data type and select the RB.MultiDatePicker within Umbraco's Developer section. Once setup, you will be able to add the data type as a property to a document type. When an instance of that document type is created, the editor will be displayed with a collection of editable dates.

Usage

When using a property value on a template, add the following code to return and use a list of dates.

var dates = Model.Content.GetPropertyValue<List<DateTime>>("alias");

Once converted, you will be able to select or loop through each date. For example:

@{
    <ul>
        @foreach (var date in dates)
        {
            <li>@date.ToString()</li>        }
    </ul>
}

Contributing

To raise a new bug, create an issue on the Bitbucket repository. To fix a bug or add new features or providers, fork the repository and send a pull request with your changes. Feel free to add ideas to the repository's issues list if you would to discuss anything related to the package.

Screenshots

Package owner

RB

RB

RB has 150 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
Version 8.6.x (untested)
Version 8.5.x (untested)
Version 8.4.x (untested)
Version 8.3.x (untested)
Version 8.2.x (untested)
Version 8.1.x (untested)
Version 8.0.x (untested)
Version 7.15.x (untested)
Version 7.14.x (untested)
Version 7.13.x (untested)
Version 7.12.x (untested)
Version 7.11.x (untested)
Version 7.10.x (untested)
Version 7.9.x (untested)
Version 7.8.x (untested)
Version 7.7.x (untested)
Version 7.6.x (untested)
Version 7.5.x (untested)
Version 7.4.x (untested)
Version 7.3.x (untested)
Version 7.2.x (untested)
Version 7.1.x (untested)
Version 7.0.x (untested)
Version 6.2.x (untested)

You must login before you can report on package compatibility.

Package Information

  • Package owner: RB
  • Contributors: Dan Lister
  • Created: 15/08/2014
  • Current version 1.0.0
  • .NET version 4.0
  • License MIT
  • Downloads on Our: 616

External resources