changing the base template for one particular Laravel Backpack CRUD #981
Replies: 2 comments
-
In the CRUD::setListView('customView'); In customView.blade.php I have this:
So what goes in the I tried If I copy the contents of vendor/backpack/crud/src/resources/views/crud/list.blade.php to customView.blade.php it shows up as it would if I wasn't using a custom template at all. |
Beta Was this translation helpful? Give feedback.
-
Are you thinking of replacing the head section so you can change the theme? NO, Replacing the head is complicated. Backpack has multiple theme support, and other assets are dynamically included as per field & column usage. This all makes the head section way dynamic. I would recommend you do the following instead:
This way, you'll also be free to use your theme for the whole admin panel to match it with the front end. And, If you would ❤️ to share your theme with other backpack users, you can create a theme as a package. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'd like to make it so that a particular Laravel Backpack CRUD uses resources/views/layouts/app.blade.php vs whatever it's using right now (backpack/theme-tabler/inc/head.blade.php?)
I mean, I'd still like to use all the CRUD Field template components but I want to use the same template that my non Laravel Backpack pages use.
Any ideas as to how I might do this?
Beta Was this translation helpful? Give feedback.
All reactions