Answer the question
In order to leave comments, you need to log in
How to properly organize the work of custom fields with nesting?
It required the introduction of custom fields for certain models, in a specific case - for posts. But I would like to have some kind of field structure, in this case it is already known and understandable:
custom_fields : {
category_field: {
field_name: value,
field_name: value
},
category_field: {
field_name: value,
field_name: value
},
category_field: {
field_name: value,
field_name: value
}
}
$article->updateMeta('field_category.field_name', 'A fantastic value');
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question