Dimension

Categories

Component ID

2246923

Component name

Dimension

Component type

module

Maintenance status

Development status

Component security advisory coverage

covered

Downloads

3037

Component created

Component changed

Component body

A field class to support dimensions. The following three modes are supported:

  1. Length
  2. Area (width and height)
  3. Volume (width, height and depth)

The module comes with two formatters where the dimension values either get displayed as a table with each value of the dimension in a new row or as a single line with the initial(s) of the dimension components as the label(s).

In the field settings each dimension component can be configured individually with prefix, suffix and data type. At this time, only integer and decimals are supported. Also, a description for each dimension component can be defined which will be used in form widgets to help the user understand what each field means and what to input.

This field is a requirement for Commerce Product Dimensions, see https://drupal.org/project/commerce_product_dimensions