-
So I'm trying to display a module which has two relationships. Got a Crews table which contains members and roles and got a module for it. Maybe not the smartest decision but this was inherited, so... I got what I got. Part of my controller:
On index view, I am being able to get names and roles, but there's an extra column I cannot reach, which defaults to 'name' as its name, and its not sortable (funny, the column next to it, is). I attach an screenshot to clarify what I got: Any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Has anyone found an explanation for this issue? |
Beta Was this translation helpful? Give feedback.
-
Hi @zedee sorry for the delay. I'm not sure how you are trying to access the "Nom" column since it is not in your example code. I think you might have an issue because your |
Beta Was this translation helpful? Give feedback.
-
Had the same problem until I figured it out - @ifox is right, I can confirm that if you override
|
Beta Was this translation helpful? Give feedback.
Had the same problem until I figured it out - @ifox is right, I can confirm that if you override
$indexColumns
,$titleColumnKey
has to have a key in it. Twill tries to access $indexColumns[$this->titleColumnKey], which means that whatever$titleColumnKey
property is set to, that value has to be included in$indexColumns
as a key, eg. if you left$titleColumnKey
untouched (default value is 'title', already set in the package),$indexColumns
has to be set like so: