Custom page in resource

I want to create a custom page in my resource.I cant figure out how to call it from my list page in resource so that it redirects to the custom page.
Solution:
okay okay thanks i was calling url in the action.
Jump to solution
5 Replies
toeknee
toeknee8mo ago
Just add it to the pages array in the resource
Talha Chughtai
Talha Chughtai8mo ago
i have added it in the resources getPages Array. but when i call it for example on list products i do Action::make('')->action(url('that url which i specified there on get pages array')). it doesnt work button just do nothing.
Noxo
Noxo8mo ago
->url(fn ($record) => YourResource::getUrl('page-name', ['record' => $record]))
Solution
Talha Chughtai
Talha Chughtai8mo ago
okay okay thanks i was calling url in the action.