mattbrailsford / umbraco-fluidity

A fluent CRUD user interface generator for Umbraco
https://our.umbraco.org/projects/backoffice-extensions/fluidity/
Apache License 2.0
48 stars 40 forks source link

Multiple columns in entity picker listview? #62

Open netaddicts opened 6 years ago

netaddicts commented 6 years ago

Hi Matt,

Just a silly question, can't seem to find any doc on whether it would be possible to define/override list behaviour for an entity picker.

image

As per above screenshot (from the docs), a single column is defined in the listview to pick an entity. Any idea if possible to define multiple columns on this specific list view (Or single column concat'ing multiple fields if >1 columns is not an option)?

jamiepollock commented 6 years ago

@netaddicts I don't think that's possible in the current iteration as it's based on the core picker markup.

What I can say is the markup is held in the mini list view directive, see: https://github.com/umco/umbraco-fluidity/blob/192b28031dab44653066d621f479b6917541c64a/src/Fluidity/Web/UI/App_Plugins/Fluidity/directives/minilistview.html

mattbrailsford commented 6 years ago

That's correct.

The only thing you can do, though it would affect general list views as well is set a NameFormat on the list view rather than setting a name field as this will use whatever is configured as being the name.

I'd have to have a think of the best way to go about this.

netaddicts commented 6 years ago

FWIW, we've included a "computed" column in db and used that specific column to show in (mini)listview.