Copy Atum template. Enable the copied template.
Works.
First Issue:
Warning: require_once(administrator\templates\atum2/Service/HTML/Atum.php): failed to open stream: No such file or directory in administrator\templates\atum2\index.php on line 35
Fatal error: require_once(): Failed opening required 'administrator\templates\atum2/Service/HTML/Atum.php' in administrator\templates\atum2\index.php on line 35
This is solved by adding missing Service
folder to templateDetails.xml
. But then there's another issue. The JS files are missing and this causes the template to break completely:
Copy Template function needs to be updated to account for new asset paths.
Labels |
Added:
?
|
Labels |
Added:
?
|
Status | New | ⇒ | Discussion |
Labels |
Added:
?
|
@infograf768 That's not my task and I never said I'd do that.
It's exactly as @SharkyKZ wrotes, the template copy needs to take care of all assets (language files obviously included), not just simply copy the folder. If it properly reads and copies the assets, then the language file issue is solved as well.
#28796 is mainly aimed at copying site template but we started there to discuss solutions.
We do not get anymore the issue with Service
as stated by @SharkyKZ as it has been added to the xml.
But we still get the issue with the specific js files in media/templates/atum/js/
Cassiopea has no js files but one can imagine 3rd party templates may have some also in media.
and evidently the language files for which we get
JInstaller: :Install: File does not exist /Applications/MAMP/htdocs/testinstall/joomla40/tmp/template_copy_5ea51c4e22eff/en-GB/en-GB.tpl_atum2.ini
Let me add this comment to #28796 and see what @Bakual says about keeping one or the other.
Status | Discussion | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-04-26 14:04:29 |
Closed_By | ⇒ | Quy |
Labels |
Removed:
?
|
Note: The copy template needs even more as we have a pr by @Bakual taking off the language folder from the core templates. I.e. it also needs to look into the core language folders for the ini files there. Would be good if a patch would include both issues.
ATM, we have only
in the
copy()
method.I guess the
fixTemplateName()
method would also need to be refactored.