This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
LMBdev
I'm working on extending the User model with my own plugin. You can see my other post at: https://octobercms.com/forum/post/relation-widget-internal-server-error
What I'm curious about doing now is a custom select in the widget form field definition. I have read the documentation about relation widgets and understand i can use 'select' => as I have done below:
'jobCategory' => [
'label' => 'wwrf.profile::lang.profile.category',
'tab' => 'wwrf.profile::lang.profile.tab',
'type' => 'relation',
'select' => with('parent_id', 3),
'nameFrom' => 'name',
'descriptionFrom' => 'name',
'span' => 'right'
];
Last updated
1-1 of 1