Panda
Is it possible to add resources inside a new folder ?
Check if you've added either the
$shouldRegisterNavigation
property or the shouldRegisterNavigation
method on your resource class. If either of them is returning false then it will render in navigation.13 replies
Is it possible to add resources inside a new folder ?
If you've already created resources then you can move them into a sub-namespace folder and adjust the namespace of your resource, relation managers, and pages. Also, remember to edit the imports in your pages and relation manager.
13 replies
Section of fields that I can re-use over multiple resources/custom pages
You can define them on a resource or on a separate class as a static method. I've used a similar method in a resource class where I created a custom delete action which I needed in two places.
I added the following code in my
CoinsPackResource
class as I was re-using this only in the same resource but you can create a separate class somewhere else and define your custom methods on it.
6 replies
Is it possible to disable the resource index page?
Fixed it! The
index
page URL is generated in the following places.
1. Sidebar navigation
2. Cancel button on edit page (not using edit page)
3. Breadcrumbs
Since I'm not registering the resource in navigation the only thing that was giving me trouble was the breadcrumbs which after a deep dive into the Filament resource pages code I ended up overriding the getBreadcrumbs
method on the ViewSeries
page. I replaced the link to the index
page with the view
page of my parent/owner resource.
This is my implementation in the SeriesResource/Pages/ViewSeries
class.
7 replies
How to delete [index] resource page?
Fixed it! The
index
page URL is generated in the following places.
1. Sidebar navigation
2. Cancel button on edit page (not using edit page)
3. Breadcrumbs
Since I'm not registering the resource in navigation the only thing that was giving me trouble was the breadcrumbs which after a deep dive into the Filament resource pages code I ended up overriding the getBreadcrumbs
method on the ViewSeries
page. I replaced the link to the index
page with the view
page of my parent/owner resource.
This is my implementation in the SeriesResource/Pages/ViewSeries
class.
6 replies
Login without password
For that, you would need to implement custom functionality to store user session (card) and determine whether to show the pin entry or email/password fields. If you need more control you can swap the default Filament auth middleware with your custom implementation and also pass the controller action to the
login
chained method in AdminPanelProvider
.
I've not personally used it but you can test this plugin https://filamentphp.com/plugins/marjose123-lockscreen6 replies