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.18.x (untested)

You must login before you can report on package compatibility.

Previously reported to work on versions:

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: 696

External resources