Expression Field

This project is not covered by Drupal’s security advisory policy.

Expression Field Settings Screenshot

Defines a new "Expression" field type which will evaluate a mathematical expression.


  • Token module support. It's recommended that you use token so that your expressions can be evaluated with dynamic values from other fields. Otherwise you'll only really be able to hard code the expression on the field settings.
  • Default values for tokens that don't resolve
  • Ability to have the expression evaluated when the field is rendered (otherwise it is evaluated only when the node is saved and stored in the database as the field value)

This module is sort of a D8 successor to Mathfield. Doesn't have all the features of mathfield, but it looks like we're using the same underlying expression evaluation library so should be able to do roughly the same level of mathematic evaluation.

Expression Field项目的Drush安装命令:复制到剪贴板



8.x-1.0-alpha1tar.gz (10.74 KB) | zip (14.3 KB)2017年10月10日发布说明简 | 繁 | 更多


8.x-1.x-devtar.gz (10.75 KB) | zip (14.3 KB)2017年10月10日发布说明简 | 繁 | 更多