Modgift.Umbraco.CronInput 1.0.0

dotnet add package Modgift.Umbraco.CronInput --version 1.0.0
                    
NuGet\Install-Package Modgift.Umbraco.CronInput -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Modgift.Umbraco.CronInput" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Modgift.Umbraco.CronInput" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Modgift.Umbraco.CronInput" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Modgift.Umbraco.CronInput --version 1.0.0
                    
#r "nuget: Modgift.Umbraco.CronInput, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Modgift.Umbraco.CronInput@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Modgift.Umbraco.CronInput&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Modgift.Umbraco.CronInput&version=1.0.0
                    
Install as a Cake Tool

Modgift.Umbraco.CronInput

A property editor for Umbraco that provides a cron expression input with real-time human-readable descriptions.

What it does

The property editor renders a text input where content editors can type a cron expression (e.g. */5 * * * *). As the user types, a label beneath the input instantly translates the expression into plain language (e.g. "Every 5 minutes"). If the expression is invalid, the label shows "Invalid cron expression" in red.

The value is stored as a plain string using the built-in Umbraco.Plain.String schema — no custom server-side data editor is needed.

Installation

Installation from Nuget.org

dotnet add package Modgift.Umbraco.CronInput

Creating the Data Type

  1. In the Umbraco backoffice, go to Settings > Data Types
  2. Click Create
  3. Search for "Cron Input" and select it
  4. Configure the settings (see below)
  5. Save

Settings

Setting Type Default Description
Validation required Boolean false When enabled, a valid cron expression must be entered before the content node can be published.

Usage

Once the data type is created, add it as a property on any document type. Content editors will see:

  • A text input with a * * * * * placeholder
  • A human-readable description that updates as they type
  • Validation feedback if the expression is invalid
  • A publish block if "Validation required" is enabled and the value is empty or invalid

Cron expression examples

Expression Description
* * * * * Every minute
*/5 * * * * Every 5 minutes
0 9 * * 1-5 At 09:00, Monday through Friday
0 0 1 * * At 00:00, on day 1 of the month
0 12 * * 1 At 12:00, only on Monday

Reading the value

The property stores a standard cron expression string. Access it like any other Umbraco property:

var cronExpression = content.Value<string>("myCronProperty");

Dependencies

  • cronstrue — translates cron expressions into human-readable descriptions
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 120 3/25/2026