I need some multi date range picker for a site.
I have just found a package from Dan Diplo which together with Archetype looks to sort it but I have two concerns about it.
Is this package available in NuGet? I cannot find it.
Just to close this. I finally installed the Date Range Picker and I used Archetype to have multiple entries:
And I created an extension to get the date ranges:
public static List<DateRange> GetDateRanges(this IPublishedContent node, string alias)
{
List<DateRange> dateRanges = new List<DateRange>();
var archetypeModel = node.GetPropertyValue<ArchetypeModel>(alias);
if (archetypeModel != null && archetypeModel.Fieldsets != null)
{
foreach (var item in archetypeModel)
{
dateRanges.Add(item.GetValue<Diplo.DateRangePicker.DateRange>("dateRange"));
}
}
return dateRanges;
}
The package seems to be working fine for 7.4.3, the only bad thing is that I could't find it on NuGet.
Date Range Picker
Morning!
I need some multi date range picker for a site. I have just found a package from Dan Diplo which together with Archetype looks to sort it but I have two concerns about it.
Hope someone can help me.
/Lucio
Just to close this. I finally installed the Date Range Picker and I used Archetype to have multiple entries: And I created an extension to get the date ranges:
The package seems to be working fine for 7.4.3, the only bad thing is that I could't find it on NuGet.
is working on a reply...