Reusing a Page
I have created a custom page that I've been trying to make reusable. So based on one of the tables in my database, I want to have multiples of that page show up in the navigation for each entry for a particular user.
I've had a look through the documentation quite thoroughly and there doesn't seem to be anything about being able to reuse the same custom page multiple times.
Wondering if anyone had any ideas on how to get this to work?
2 Replies
I believe I have found the solution right after posting this. I stumbled upon a method called getNavigationItems() along with Filament/Navigation/NavigationItem which has allowed me to make a bunch of pages based off of database rows from my table.
I couldn't find anything about this in the docs.
Solution
getNavigationItems()
sounds like a good solutions to this