lucky-media/width-field

This package is abandoned and no longer maintained. No replacement package was suggested.

A beautiful way to let users choose from custom widths.

v2.0 2023-02-15 21:07 UTC

This package is auto-updated.

Last update: 2023-10-23 11:36:02 UTC


README

screenshot

Width Field

A beautiful way to let users choose custom widths. You can enable/disable when adding the Fieldtype to the Blueprint.

Available Widths

  • Full
  • Half
  • One Third
  • Two Thirds
  • One Quarter
  • Three Quarters

How to Install

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

How to Use

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

Commercial addon

Width Field is a commercial addon - you must purchase a license via the Statamic Marketplace to use it in your project.

🐞 Bugs and 💡 Feature Requests

Please refer to the issues tab to submit a Bug or a Feature Request.