From 7c43a9fe64ed01789962fcee07e79957fbbbdbf7 Mon Sep 17 00:00:00 2001 From: Jonathan Miller Date: Tue, 21 Apr 2026 14:09:24 -0500 Subject: [PATCH] feat: add Migration tab in template config with re-run instructions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - New "Migration" fieldset in template options - Instructions for re-running migration (delete .migrated) - Direct link to Extensions → Manage to uninstall MokoCassiopeia Co-Authored-By: Claude Opus 4.6 (1M context) --- src/language/en-GB/tpl_mokoonyx.ini | 7 +++++++ src/language/en-US/tpl_mokoonyx.ini | 7 +++++++ src/templateDetails.xml | 4 ++++ 3 files changed, 18 insertions(+) diff --git a/src/language/en-GB/tpl_mokoonyx.ini b/src/language/en-GB/tpl_mokoonyx.ini index e507402..ad8dea6 100644 --- a/src/language/en-GB/tpl_mokoonyx.ini +++ b/src/language/en-GB/tpl_mokoonyx.ini @@ -267,6 +267,13 @@ TPL_MOKOONYX_THEME_PREVIEW_FIELDSET_LABEL="Theme Preview" TPL_MOKOONYX_THEME_PREVIEW_INTRO="

Live preview of all CSS variables, hero variants, block colours, and Bootstrap components rendered with your active theme. Use the Toggle Light / Dark button inside the preview to switch modes. This page is also available as a standalone file at templates/mokoonyx/templates/theme-test.html.

" TPL_MOKOONYX_THEME_PREVIEW_FRAME="" +; ===== Migration ===== +TPL_MOKOONYX_MIGRATION_FIELDSET_LABEL="Migration" +TPL_MOKOONYX_MIGRATION_NOTE_LABEL="MokoCassiopeia Migration" +TPL_MOKOONYX_MIGRATION_NOTE_DESC="MokoOnyx automatically imports settings from MokoCassiopeia on first page load. If you need to re-run the migration, delete the file templates/mokoonyx/.migrated and visit any frontend page. Check administrator/logs/mokoonyx_migrate.log.php to confirm." +TPL_MOKOONYX_MIGRATION_RUN_LABEL="Re-run Migration" +TPL_MOKOONYX_MIGRATION_RUN_DESC="To re-run the migration: Delete templates/mokoonyx/.migrated via FTP or file manager, then visit any page on your site. The migration will run again automatically.

To uninstall MokoCassiopeia: Go to Extensions → Manage, find MokoCassiopeia, and click Uninstall." + ; ===== Misc ===== MOD_BREADCRUMBS_HERE="YOU ARE HERE:" diff --git a/src/language/en-US/tpl_mokoonyx.ini b/src/language/en-US/tpl_mokoonyx.ini index 0175c48..092c003 100644 --- a/src/language/en-US/tpl_mokoonyx.ini +++ b/src/language/en-US/tpl_mokoonyx.ini @@ -267,6 +267,13 @@ TPL_MOKOONYX_THEME_PREVIEW_FIELDSET_LABEL="Theme Preview" TPL_MOKOONYX_THEME_PREVIEW_INTRO="

Live preview of all CSS variables, hero variants, block colors, and Bootstrap components rendered with your active theme. Use the Toggle Light / Dark button inside the preview to switch modes. This page is also available as a standalone file at templates/mokoonyx/templates/theme-test.html.

" TPL_MOKOONYX_THEME_PREVIEW_FRAME="" +; ===== Migration ===== +TPL_MOKOONYX_MIGRATION_FIELDSET_LABEL="Migration" +TPL_MOKOONYX_MIGRATION_NOTE_LABEL="MokoCassiopeia Migration" +TPL_MOKOONYX_MIGRATION_NOTE_DESC="MokoOnyx automatically imports settings from MokoCassiopeia on first page load. If you need to re-run the migration, delete the file templates/mokoonyx/.migrated and visit any frontend page. Check administrator/logs/mokoonyx_migrate.log.php to confirm." +TPL_MOKOONYX_MIGRATION_RUN_LABEL="Re-run Migration" +TPL_MOKOONYX_MIGRATION_RUN_DESC="To re-run the migration: Delete templates/mokoonyx/.migrated via FTP or file manager, then visit any page on your site. The migration will run again automatically.

To uninstall MokoCassiopeia: Go to Extensions → Manage, find MokoCassiopeia, and click Uninstall." + ; ===== Misc ===== MOD_BREADCRUMBS_HERE="YOU ARE HERE:" diff --git a/src/templateDetails.xml b/src/templateDetails.xml index d5fb79b..ee5715e 100644 --- a/src/templateDetails.xml +++ b/src/templateDetails.xml @@ -108,6 +108,10 @@ +
+ + +