Create a child template.
It creates the same media folders that the parent is using at media/templates/site/foo and defined in templateDetails.xml.
It creates the media folders (css, images, js, scss) and the file folder (html) from cassiopeia, even if i create a child of another template.
If i create a child from cassiopeia it still should not create the html folder in the media path (media/templates/site/cassiopeia) but in the template path (templates/cassiopeia).
Joomla 4.2.2.
PHP 8.0.22
Labels |
Added:
No Code Attached Yet
|
If i create a child from cassiopeia it still should not create the html folder in the media path (media/templates/site/cassiopeia) but in the template path (templates/cassiopeia).
This part is fixed, thanks.
It creates the media folders (css, images, js, scss) and the file folder (html) from cassiopeia, even if i create a child of another template.
It is not looking for the original folders if i create a child from another template tho.
Labels |
Added:
bug
|
The folder creation is static in the TemplateModel and not looking for the parents templateDetails.xml settings:
joomla-cms/administrator/components/com_templates/src/Model/TemplateModel.php
Lines 1936 to 1944 in 04bf645
joomla-cms/administrator/components/com_templates/src/Model/TemplateModel.php
Lines 1963 to 1971 in 04bf645