A beautiful way to let users choose custom widths. You can enable/disable when adding the Fieldtype to the Blueprint.
- Full
- Half
- One Third
- Two Thirds
- One Quarter
- Three Quarters
You can search for this addon in the Tools > Addons
section of the Statamic control panel and click install, or run the following command from your project root:
composer require lucky-media/width-field
Optionally you can publish the configuration file if you want to edit the labels.
php artisan vendor:publish --tag=config
On the blueprint where you want to include it ( ex. Posts, Pages etc. ) search for Width
, enable your preferred sizes, and you are done.
On your template you will get the slugified
version of each field:
{{ width }}
This will render one of the following options:
- full
- half
- one-third
- two-thirds
- one-quarter
- three-quarters
Width Field is a commercial addon - you must purchase a license via the Statamic Marketplace to use it in your project.
Please refer to the issues tab to submit a Bug or a Feature Request.