ctigelaar / craft-dropdowndate
Custom fieldtype for Craft to display a DateTime field as separate dropdowns
Installs: 157
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:craft-plugin
Requires
- composer/installers: ~1.0
This package is not auto-updated.
Last update: 2024-11-09 20:01:39 UTC
README
Custom fieldtype for Craft to display a DateTime field as separate dropdowns
Functionality
- Extends the default DateTime fieldtype, but without a datepicker.
- Allows the user to enter a date using three separate
<select>
fields for day/month/year. - You can set your own range for the Year field, using full numeric year notation (eg. 2016) or a
strtotime()
value based on the current date/time.
Installation
Using Composer
-
Add
ctigelaar/craft-dropddowndate
to yourcomposer.json
file. -
Run Composer:
php composer.phar update
-
Go to your Control Panel and navigate to Settings/Plugins and click the Install button to install Dropdown Date.
-
Installation complete, you can now choose this fieldtype when creating fields.
Using just copy and paste
- Download a zip from the latest release, see releases.
- Unzip it in a new directory
craft/plugins/dropdowndate
. - Go to your Control Panel and navigate to Settings/Plugins and click the Install button to install Dropdown Date.
- Installation complete, you can now choose this fieldtype when creating fields.
TODO
Some ideas to make this fieldtype even more flexible. Just a list of ideas, not to be meant as a roadmap or something like that.
- Add dropdowns for time selection
- Display dropdowns in the order of Craft's dateformat
Contact
If you have any questions, suggestions or noticed any bugs, please feel free to contact me.