This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
Greg
Hello, In my plugin, I have a list (models/apple/column.yaml) of let's say Apple model. My Apple apple model as a relation "belongsTo" "tree". So I can easily display tree.name in my list (models/apple/columns.yaml):
columns:
id:
label: id
type: number
sortable: true
tree_name:
label: 'Tree name'
type: number
sortable: true
select: name
relation: tree
But my Tree model has a relation "belongsTo" "Field". Field has a property name. So my question is: how can I add a column to my models/apple/columns.yaml to display the name of the Field? In a component, I can call $apple->tree->field->name… but here…
Thanks for your help.
1-1 of 1