Streams Module: Customise Columns Shown on Entries View
Created 5 years ago by finnito

Hey,

I'd like to be able to customise the columns that are shown on the entries view of a stream in the Streams Module a-la Pyro v2. Is this possible or in the roadmap? It used to be simply a bunch of checkboxes to say which ones you'd like to see in the entries view.

Thanks!

ryanthompson  —  5 years ago Best Answer

Currently.. it's super ugly. It starts here: https://github.com/anomalylabs/streams-module/blob/1.2/src/Entry/Command/GetEntryTableBuilder.php#L55

So that means you can publish the streams module configuration and add a table class to resolve for that namespace/stream and control it entirely yourself.

You can also use that same configuration key and make it an array of parameters like buttons, columns, etc: https://github.com/anomalylabs/streams-module/blob/1.2/src/Entry/Command/GetConfiguredTableBuilder.php#L50

finnito  —  5 years ago

Yikes! Makes sense though, I'm trying to learn about making Modules at the moment so I get where this fits in. Thanks! 😄