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
atum user.js not loading #43320
Comments
unlike in cassiopeia there is no code in |
@brianteeman it's a pity,For now I will add the js to the php view of the pages/modules I need it on. Could this be a feature request? |
Can you epxlain more the use case for adding js to every page of the admin |
I would use it for Custom CSS display and communication : -Custom pages : I want to hide certain content/options to site managers for a page or a module if there is a specific value in its DOM(the element can just be the value of the custom field from the page/module). I am sure that there are other cases where this would be useful as as you know you get the benefit of not having to update the extension/module files on each update. I saw a few requests on forum and here also for this feature : No worries if it does not get implemented though but to see if its worth it, maybe we need the opinion of more developers with their own case? |
From the sound of it you should be adding the js with the module and then it is only loaded on the pages that uses the module. Adding it to the template itself as you request would add the script everywhere. |
Well, it is for a few different modules an 1 extension but I will create templates overrides. I made this suggestion mostly because I thought that it would benefit other developers wanting to customize the admin interface easily. |
My point is that this is not the correct way to do it. You should not be loading javascript everywhere if it is not needed. That is what the web asset manager is for. |
@brianteeman I was not aware of the web asset manager. I will check it out, thank you. |
Steps to reproduce the issue
In /media/templates/administrator/atum/js/ create user.js
Expected result
js loading in browser
Actual result
js not loading
System information (as much as possible)
Joomla 5.1 8.2.10-2ubuntu1
Additional comments
template.min.js does show; the user.js added to cassopia in front end works fine.
user.css is loading properly so no double gzip compression issue
The text was updated successfully, but these errors were encountered: