diff --git a/install-layer2.sh b/install-layer2.sh
index 0dacdc0..8f7a009 100644
--- a/install-layer2.sh
+++ b/install-layer2.sh
@@ -58,8 +58,8 @@ if [ -f "$DEST" ]; then
else
cat >> "$DEST" <<'PHP'
-// apiscp-borg
-$templateClass->create_link('Borg Backups', '/apps/borg', true, null, null);
+$templateClass->create_category('Backups', true, '', 'backups'); // apiscp-borg
+$templateClass->create_link('Borg', '/apps/borg', true, '', 'backups'); // apiscp-borg
PHP
fi
fi
@@ -79,8 +79,8 @@ if [ -f "$SITE_DEST" ]; then
echo " appending create_link() to existing $SITE_DEST"
cat >> "$SITE_DEST" <<'PHP'
-// apiscp-borg (site-owner)
-$templateClass->create_link('My Borg Backups', '/apps/myborgbackups', true, null, 'account');
+$templateClass->create_category('Backups', true, '', 'backups'); // apiscp-borg
+$templateClass->create_link('Borg', '/apps/myborgbackups', true, '', 'backups'); // apiscp-borg
PHP
fi
else
diff --git a/src/templates/admin.php b/src/templates/admin.php
index abf12db..00bda0d 100644
--- a/src/templates/admin.php
+++ b/src/templates/admin.php
@@ -2,17 +2,13 @@
/**
* apiscp-borg menu registration (appliance-admin panel).
*
- * Installed upgrade-safe at config/custom/templates/admin.php, which
- * lib/Template/Engine.php::load_configuration() includes with $templateClass
- * in scope after the core admin menu. Adds the "Borg Backups" link.
+ * Adds a shared "Backups" category (sidebar section) and a "Borg" link with an
+ * icon under it. The category is shared with the sibling apiscp-kopia /
+ * apiscp-bacula plugins: each creates it (harmless to repeat) and tags its own
+ * lines with an "apiscp-" marker so its uninstaller removes only its
+ * own, leaving the category for any other backup plugin still installed.
*
- * If you already maintain a custom admin.php, copy just the create_link()
- * call below into it instead of overwriting your file.
+ * If you already maintain a custom admin.php, copy just the two calls below.
*/
- $templateClass->create_link(
- 'Borg Backups', // label
- '/apps/borg', // href -> config/custom/apps/borg
- true, // assertion: always visible within the admin menu
- null, // icon
- 'services' // category: "System" (internal id 'services')
- );
+ $templateClass->create_category('Backups', true, '', 'backups'); // apiscp-borg
+ $templateClass->create_link('Borg', '/apps/borg', true, '', 'backups'); // apiscp-borg
diff --git a/src/templates/site.php b/src/templates/site.php
index 199f3ea..cf34e8a 100644
--- a/src/templates/site.php
+++ b/src/templates/site.php
@@ -2,19 +2,13 @@
/**
* apiscp-borg menu registration (site-owner panel).
*
- * Installed upgrade-safe at config/custom/templates/site.php, which
- * lib/Template/Engine.php::load_configuration() includes with $templateClass
- * in scope after the core site menu. Adds a "My Borg Backups" link that
- * opens the site-owner GUI app (config/custom/apps/myborgbackups), scoped
- * to the signed-in account's own site only.
+ * Adds a shared "Backups" category and a "Borg" link (with an icon) that opens
+ * the site-owner GUI (config/custom/apps/myborgbackups), scoped to the
+ * signed-in account's own site only. The category is shared with the sibling
+ * plugins; each tags its own lines with an "apiscp-" marker so its
+ * uninstaller removes only its own.
*
- * If you already maintain a custom site.php, copy just the create_link()
- * call below into it instead of overwriting your file.
+ * If you already maintain a custom site.php, copy just the two calls below.
*/
- $templateClass->create_link(
- 'My Borg Backups', // label
- '/apps/myborgbackups', // href -> config/custom/apps/myborgbackups
- true, // assertion: visible to the site administrator
- null, // icon
- 'account' // category (site panel "Account" section)
- );
+ $templateClass->create_category('Backups', true, '', 'backups'); // apiscp-borg
+ $templateClass->create_link('Borg', '/apps/myborgbackups', true, '', 'backups'); // apiscp-borg