下面的命令使用相同的标签克隆该字段。
drush field-clone field_tags newtags
正如您所看到的,克隆字段具有相同的标题标记。
那么,如何用所需的标签克隆现有字段呢?
发布于 2016-12-07 13:09:10
基于对此命令的帮助,我认为这是不可能的:
$ drush help field-clone
Clone a field and all its instances.
Examples:
field-clone tags labels Copy 'tags' field into a new field 'labels' field which has same
instances.
open `field-clone tags labels` Clone field and then open field edit forms for refinement.
Arguments:
source_field_name Name of field that will be cloned
target_field_name Name of new, cloned field.编辑:这个GitHub问题可以确认它。
但是,您可以一直到“管理字段”、编辑新字段并更改其名称。
https://drupal.stackexchange.com/questions/222378
复制相似问题