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
<PackageReference Include="Modgift.Umbraco.CronInput" Version="1.0.0" />
<PackageVersion Include="Modgift.Umbraco.CronInput" Version="1.0.0" />
<PackageReference Include="Modgift.Umbraco.CronInput" />
paket add Modgift.Umbraco.CronInput --version 1.0.0
#r "nuget: Modgift.Umbraco.CronInput, 1.0.0"
#:package Modgift.Umbraco.CronInput@1.0.0
#addin nuget:?package=Modgift.Umbraco.CronInput&version=1.0.0
#tool nuget:?package=Modgift.Umbraco.CronInput&version=1.0.0
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
- In the Umbraco backoffice, go to Settings > Data Types
- Click Create
- Search for "Cron Input" and select it
- Configure the settings (see below)
- 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 | Versions 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. |
-
net10.0
- Umbraco.Cms.Web.Website (>= 17.1.0)
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 |