当我管理字段(主页»管理»结构»内容类型»文章»管理字段)时,更改字段的种类。
在数据库中,存储字段的权重?
答案 0 :(得分:1)
权重位于“field_config_instance”表的“data”列中。请注意,数据列存储序列化数组。例如,这是我数据库中某个字段的数据列。我用粗体突出显示了重量字段。您会注意到每个视图模式也有相应的权重,显示在“管理显示”页面上。
a: 6: {
s: 5: "label";
s: 7: "Address";
s: 8: "required";
b: 1;
s: 6: "widget";
a: 4: {
s: 4: "type";
s: 21: "addressfield_standard";
s: 6: * * "weight";
i: -10 * * ;
s: 8: "settings";
a: 2: {
s: 15: "format_handlers";
a: 2: {
i: 0;
s: 7: "address";
i: 1;
s: 12: "name-oneline";
}
s: 19: "available_countries";
a: 0: {}
}
s: 6: "module";
s: 12: "addressfield";
}
s: 7: "display";
a: 3: {
s: 7: "default";
a: 5: {
s: 5: "label";
s: 6: "hidden";
s: 4: "type";
s: 20: "addressfield_default";
s: 6: "weight";
i: -10;
s: 8: "settings";
a: 2: {
s: 19: "use_widget_handlers";
i: 1;
s: 15: "format_handlers";
a: 1: {
i: 0;
s: 7: "address";
}
}
s: 6: "module";
s: 12: "addressfield";
}
s: 8: "customer";
a: 5: {
s: 5: "label";
s: 6: "hidden";
s: 4: "type";
s: 20: "addressfield_default";
s: 6: "weight";
i: -10;
s: 8: "settings";
a: 2: {
s: 19: "use_widget_handlers";
i: 1;
s: 15: "format_handlers";
a: 1: {
i: 0;
s: 7: "address";
}
}
s: 6: "module";
s: 12: "addressfield";
}
s: 13: "administrator";
a: 5: {
s: 5: "label";
s: 6: "hidden";
s: 4: "type";
s: 20: "addressfield_default";
s: 6: "weight";
i: -10;
s: 8: "settings";
a: 2: {
s: 19: "use_widget_handlers";
i: 1;
s: 15: "format_handlers";
a: 1: {
i: 0;
s: 7: "address";
}
}
s: 6: "module";
s: 12: "addressfield";
}
}
s: 8: "settings";
a: 1: {
s: 18: "user_register_form";
b: 0;
}
s: 11: "description";
s: 0: "";
}
Neerav Mehta