F
Filamentβ€’12mo ago
Robin

Pages

Hello, Is it possible to create a new page and redirect just the create page of an existing resource?
Solution:
Add the deepling of your create page to the sidebar directly (in the panel service provider)
Jump to solution
4 Replies
bernhard
bernhardβ€’12mo ago
I don't understand the question. Can you be a bit more clear?
Robin
RobinOPβ€’12mo ago
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? πŸ˜…
bernhard
bernhardβ€’12mo ago
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 resource
Solution
bernhard
bernhardβ€’12mo ago
Add the deepling of your create page to the sidebar directly (in the panel service provider)
Want results from more Discord servers?
Add your server