You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is an extensive tutorial on using hooks.py for the framework itself.
I would find it very helpful to also have a documentation about the hooks.py specifically for the LMS.
Especially in regards to custom JS and CSS files.
The text was updated successfully, but these errors were encountered:
@pateljannat
Yeah, I'm trying to add a custom css file.
I edited the /home/frappe/frappe-bench/apps/lms/lms/hook.py file.
The lms55.css is my custom css. I tried to add it in two different places:
app_include_css = "/assets/lms/css/lms55.css"
# app_include_js = "/assets/lms/js/lms.js"
# include js, css files in header of web template
web_include_css = ["/assets/lms/css/lms55.css", "https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min2.css"]
The css is however not getting loaded in localhost:8080/lms but only in http://localhost:8000/app/lms (which is the desk app).
There is an extensive tutorial on using hooks.py for the framework itself.
I would find it very helpful to also have a documentation about the hooks.py specifically for the LMS.
Especially in regards to custom JS and CSS files.
The text was updated successfully, but these errors were encountered: