Filter Stream Entries by Relationship/Document Name
Created 6 years ago by finnito

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:

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

Any suggestions?

ryanthompson  —  6 years ago Best Answer
finnito  —  6 years 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  —  6 years 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.