No Code Attached Yet
avatar PixedBo
PixedBo
8 Dec 2025

Steps to reproduce the issue

Edit the "index.php" file of Cassiopeia Extended the update joomla or reinstall the core files

Expected result

Customizations stays

Actual result

Customizations are gone

System information (as much as possible)

You need just a pure, empty, joomla 6

Additional comments

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!

avatar PixedBo PixedBo - open - 8 Dec 2025
avatar joomla-cms-bot joomla-cms-bot - change - 8 Dec 2025
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 8 Dec 2025
avatar richard67
richard67 - comment - 8 Dec 2025

You can copy a child template.

avatar richard67 richard67 - change - 8 Dec 2025
Status New Closed
Closed_Date 0000-00-00 00:00:00 2025-12-08 14:34:39
Closed_By richard67
avatar richard67 richard67 - close - 8 Dec 2025
avatar richard67
richard67 - comment - 8 Dec 2025

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.

avatar PixedBo
PixedBo - comment - 9 Dec 2025

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:

  • 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?

avatar richard67 richard67 - change - 9 Dec 2025
Status Closed New
Closed_Date 2025-12-08 14:34:39
Closed_By richard67
avatar richard67 richard67 - reopen - 9 Dec 2025
avatar richard67
richard67 - comment - 9 Dec 2025

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.

avatar PixedBo
PixedBo - comment - 9 Dec 2025

Fix already in progress :) --> #46278
Thanks!

avatar richard67 richard67 - change - 9 Dec 2025
Status New Closed
Closed_Date 0000-00-00 00:00:00 2025-12-09 10:24:31
Closed_By richard67
avatar richard67 richard67 - close - 9 Dec 2025
avatar richard67
richard67 - comment - 9 Dec 2025

Ok, so we can close this issue. Thanks for the reminder. In 6.1 there will be the functionality to copy a child template.

Add a Comment

Login with GitHub to post a comment