viget / craft-dimensions
Replicate the Craft Commerce Dimensions fields as a standalone field type.
Installs: 892
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 1
Open Issues: 0
Type:craft-plugin
Requires
- craftcms/cms: ^3.0.0-RC1
This package is auto-updated.
Last update: 2025-01-29 06:26:07 UTC
README
Dimensions plugin for Craft CMS
Replicate the Craft Commerce Dimensions fields as a standalone field type.
Requirements
This plugin requires Craft CMS 3.0.0-RC1 or later.
Installation
To install the plugin, follow these instructions.
-
Open your terminal and go to your Craft project:
cd /path/to/project
-
Then tell Composer to load the plugin:
composer require viget/craft-dimensions
-
In the Control Panel, go to Settings → Plugins and click the “Install” button for Dimensions.
Usage
If you have a field named dimensions
you can access the following attributes (depending on the field settings):
dimensions.width dimensions.height dimensions.depth dimensions.width