You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
or, for a first level relation we can add the relation to the getTemplateFields method of the model1:
protected function getTemplateFields()
{
return [
'any_other_field',
'model2'
];
}
and use it in the template like {{model1.model2.field}}. It should work as expected. Unfortunately this workaround is not universal, deeper level relations won't work. Also it would show up in the ckeditor dropdown as model1.model2 without the actual fields from the model2.
Obviously these are not ideal solutions, and it makes sense to add support for the model relations in general. (including the admin part and the ckeditor).
Can we use placeholders with relations, eg
model1.model2.field
?The text was updated successfully, but these errors were encountered: