weareenvoy / craft-timeframe
Time frame field type.
Installs: 145
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 6
Forks: 0
Open Issues: 0
Type:craft-plugin
Requires
- craftcms/cms: ^3.0.0-beta.3
This package is not auto-updated.
Last update: 2024-09-15 01:09:54 UTC
README
Craft field type for a time frames ex. 10am - 12pm
Installation
Follow the below steps to install with composer.
- Install with composer
cd /craftproject
- Run the following command:
composer require weareenvoy/craft-timeframe
- Go to Settings > Plugins and enable the plugin.
Template usage
For example if have a field named mondayHours with the timeframe field you can
access the start and end time like so:
{{entry.mondayHours.startTime|time('short)}} - {{entry.mondayHours.endTime|time('short)}}