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
[4.0] Frontend Template copy failed #28796
Comments
The issue is that the language folder in our Cassiopea template was taken off, which means the whole copy template code has to be modified to also check for the template language files in the core language folders, this whether copying a site or admin template. See #23493 |
I think it fails in the fixTemplateName method (
That's where we have to change the code so it looks up the language files both in the local language folder and in the global one. For the global one, it obviously has to filter the files by template name and not just blindly copy each ini file 😄 |
Does it not have to be first done in the copy method?
I.e. creating a new |
The copy there just copies the whole template folder. The custom stuff is done in the fixTemplateName as it looks. Maybe it would make sense to create a new method which copies the language files if needed? |
And create the folder. |
I have a broad idea how it could be done. I'll try if I can do something this weekend. |
There are other assets to take care of, i.e. in See #26259 (comment) |
Please test #28813 |
Pull Request for Issue #28796 and #26259. - Adding logic to the template copy method to take care of language files in global language folder and media assets in /media - Adjusted the templates manifest files: removing the language prefix, removing language folder from Cassiopeia, adding media folder to Atum - Fixing the file filter to match all .ini files (it has to be regex)
Steps to reproduce the issue
Same issue like here: #19420 (comment) - but it's closed and I was asked to create a new issue.
Tried to copy a template which did not work.
The text was updated successfully, but these errors were encountered: