statamic / cms

The core Laravel CMS Composer package
https://statamic.com
Other
4.06k stars 530 forks source link

Relationship Selector: Columns don't use custom fieldtypes #571

Closed sauerbraten closed 4 years ago

sauerbraten commented 5 years ago

I override getColumns() in a custom relationship fieldtype like this

protected function getColumns()
{
    return [Column::make('title'), Column::make('domain'), Column::make('channel')->fieldtype('channel_select')->sortable(false), Column::make('collection')];
}

but while the preProcessIndex() from ChannelSelect.php works fine for entry listings, it isn't used in the selector.

sauerbraten commented 5 years ago

Adding a ChannelSelectIndex.vue that does the rendering works. Should the PHP way work in the Selector, too?

jesseleite commented 4 years ago

@sauerbraten Is this still an issue?

jasonvarga commented 4 years ago

Hey there, we haven’t heard back on this for a while so I’m going to need to close the issue to help us stay organized. You can always reply with more info so we can reopen it or feel free start a fresh one anytime. Either is fine by us!