-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Best way to customize the views? #943
Comments
Alright! I've found the most clean way I think... I've created the folder So, for the header, I've copied the file |
Just found the docs about this feature |
Use |
Ok, I did not know this method. Seems to allow deciding a specific folder instead of using |
"Use app('view')->prependNamespace('admin', resource_path('views/admin')); to override the bulitin views." - Which file we need to use this? Also is there any way to add custom JS for each field, like on date change [ date of birth, I will calculate age ], tirgger js code? |
@oopmvc Anyway, I managed to find this in the chinese docs, and translated it with Google Translate. Summary of common problemsOverride the built-in viewIf you need to modify the view yourself, but it is not convenient to directly modify the app('view')->prependNamespace('admin', resource_path('views/admin')); |
How to customize the |
Thanks for your tip @leandroeidi, I tested it and it worked, I was able to customize the Login page and the Dashboard overwriting. In this way I managed to version these source codes |
In the new folder version this hierarchy worked for me. |
Is there a way I could modify the login form, header or sidebar to apply custom visuals/features ?
I can see that
Encore\Admin\Layout\Content
renders the viewadmin::content
Do you know if I can override the view?
Thinking about extending the
Content
class and override...The text was updated successfully, but these errors were encountered: