https://github.com/weareenvoy/craft-timeframe
https://github.com/weareenvoy/craft-timeframe
cms craft3 craftcms fieldtype plugin
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/weareenvoy/craft-timeframe
- Owner: weareenvoy
- Created: 2017-03-23T00:36:34.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-23T16:39:13.000Z (about 9 years ago)
- Last Synced: 2025-11-27T16:45:30.751Z (7 months ago)
- Topics: cms, craft3, craftcms, fieldtype, plugin
- Language: PHP
- Size: 2.93 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Timeframe plugin for Craft CMS 3
Craft field type for a time frames ex. 10am - 12pm
## Installation
Follow the below steps to install with composer.
1. Install with composer `cd /craftproject`
2. Run the following command: `composer require weareenvoy/craft-timeframe`
3. 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)}}`