F
Filament8mo ago
Junaid

Unable to change Navigation Group of some Plugins when they don't provide any configuration.

What I am trying to do: I am using some filament plugins like Resource lock Manager but they don't provide any option for changing navigation group. So they just put items under the Daashboard while I want them under a group . I know I can solve this problem by creating my own wrapper plugin but I don't think that is a feasible solution. There must be something within filament to do this which unfortunately I can't see. What I did: I tried https://filamentphp.com/docs/3.x/panels/navigation#registering-custom-navigation-items but it does create a new item but the original one also stays in items list which is what I don't want.
6 Replies
krekas
krekas8mo ago
Check if you can disable registering navigation in the plugin. It's the issue with the plugin so raise an issue to the author or even better improve plugin by making a pr
Junaid
JunaidOP8mo ago
Yeah I know that but waiting for plugin developers to accept my PR is painfull for me. I have my app in production right now and no, there is no option to disable their navigation as they don't publish any pages
krekas
krekas8mo ago
Then fork it if pr takes too long to get merged
awcodes
awcodes8mo ago
Looking at that plugin’s source you can modify the navigation from their config. https://github.com/kenepa/resource-lock/blob/2.x/config/resource-lock.php Just publish it and change what you need.
GitHub
resource-lock/config/resource-lock.php at 2.x · kenepa/resource-lock
Filament Resource Lock is a Filament plugin that adds resource locking functionality to your site. - kenepa/resource-lock
Junaid
JunaidOP8mo ago
there are some others that don't have option in config
awcodes
awcodes8mo ago
Check their translation files too. Sometimes it’s in there. And some of them just may not have an option for it.
Want results from more Discord servers?
Add your server