Edit the "index.php" file of Cassiopeia Extended the update joomla or reinstall the core files
Customizations stays
Customizations are gone
You need just a pure, empty, joomla 6
I don't know if this is normal, but I have no idea how else to do it. I would like to make some changes to the Cassiopeia Extended “index.php” file to add some custom code, but the problem is that Cassiopeia Extended is already a child template, and its files are overwritten with every Joomla update.
Therefore, I cannot create a “child of a child,” and I have no idea how to add custom code to the template's index.php.
Intuitively, I think it would be better to create "Cassiopeia Extended" only when upgrading from Joomla 5 to Joomla 6 or in case of a new installation, but not to overwrite everything if Cassiopeia Extended already exists.
Alternatively, can you suggest a way to modify Cassiopeia Extended's index.php without losing the changes with each update? Thank you!
| Labels |
Added:
No Code Attached Yet
|
||
| Status | New | ⇒ | Closed |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2025-12-08 14:34:39 |
| Closed_By | ⇒ | richard67 |
If you modify a core template, things will always be overwritten when updating the core. This applies to a parent template as well as to a child template.
The solution is to create a copy of the template. That works for parent templates as well as for child templates.
So you can copy the Cassiopeia Extended template and make your modifications in that copy. These will not be lost when updating the core.
For these reasons I close this issue as expected behaviour. Feel free to re-open if you think this is wrong or it doesn't work for you.
Hi @richard67 and thanks for the answer!
I know that i can copy a template style but this function actually does not copy or duplicate the template or the child folder, and uses the original files.
I can't find a way to duplicate the template itself, do i need to manually duplicate the folders via FTP?
So the steps are:
right?
| Status | Closed | ⇒ | New |
| Closed_Date | 2025-12-08 14:34:39 | ⇒ | |
| Closed_By | richard67 | ⇒ |
I can't find a way to duplicate the template itself
@PixedBo You are right, there is no way to copy a child template. My mistake.
do i need to manually duplicate the folders via FTP?
So the steps are:
- create another child of Cassiopeia
- delete every file in the new child template
- copy all files from cassiopeia extended folder to the new child's folder
- edit the files i need to modify in the 2nd, new, child template
right?
Basically yes.
You also have to copy and modify the "templateDetails.xml" file so the <media destination="templates/site/cassiopeia_extended" folder="media"> point to the right folder.
Maybe you can change the title and description of this issue to make it a feature request for a "Copy child template" feature?
The copy should then have the same parent template as the original.
| Status | New | ⇒ | Closed |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2025-12-09 10:24:31 |
| Closed_By | ⇒ | richard67 |
Ok, so we can close this issue. Thanks for the reminder. In 6.1 there will be the functionality to copy a child template.
You can copy a child template.