Pages
Hello, Is it possible to create a new page and redirect just the create page of an existing resource?
Solution:Jump to solution
Add the deepling of your create page to the sidebar directly (in the panel service provider)
4 Replies
I don't understand the question. Can you be a bit more clear?
Normally, when creating a resource you ge a button to add new and a table, is it possible to remove the button and table and just have the create page whenever I click on the navigation icon? π
yes
you can achive this by a couple of steps.
Lets say your Resource is called SettingsResource
remove the CreateSetting and ListSettings Files in the MyResource/Pages Folder
remove the corresponding classes from the SettingResource Class
getPages
method return array
Disable the resource in the sidebar by adding protected static bool $shouldRegisterNavigation = false;
to the resourceSolution
Add the deepling of your create page to the sidebar directly (in the panel service provider)