finnito - 8 months ago

Hey all, I'd like to be able to filter entires of a stream by the name of a file or by a relationship. I get an error if I try and use the relationship field because it can only seem to use the relationship_id number, and you also can't access a file name for filtering.

Demonstration video: https://youtu.be/_mvF_6SPOzU

This appears to be because the the table does not store the file info but rather the ID of the file.

Any suggestions?

Answer

ryanthompson - 8 months ago

Just wrote up a fresh help guide: https://pyrocms.com/help/developer-tools/table-builders/text-filtering-relationships

ryanthompson - 8 months ago

Just wrote up a fresh help guide: https://pyrocms.com/help/developer-tools/table-builders/text-filtering-relationships

finnito - 8 months ago

Hm okay I kind of understand. What you've got there appears to pertain to a custom module, right? What if I want to add filters to a stream made through the Streams Plugin?

I have a feeling maybe I make an extension and try extend the streams plugin to add filters?

ryanthompson - 7 months ago

Same concept applies except you'll be making a table build that EXTENDS the core one and binding it. So that when Laravel resolves the core table - the one you bound will be returned instead.