From 1a6ebb911b87a723de2e6222f0a9b06f3e1a1e21 Mon Sep 17 00:00:00 2001 From: KirbyDE Date: Sat, 20 Jul 2024 22:05:58 +0200 Subject: [PATCH] Show modification key in emplate modification list This template modification changes the template modification list to display the modification key if developer mode is enabled --- .../tckDeveloperTools_template_modification_list_c.json | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 _output/template_modifications/admin/tckDeveloperTools_template_modification_list_c.json diff --git a/_output/template_modifications/admin/tckDeveloperTools_template_modification_list_c.json b/_output/template_modifications/admin/tckDeveloperTools_template_modification_list_c.json new file mode 100644 index 0000000..0bb701a --- /dev/null +++ b/_output/template_modifications/admin/tckDeveloperTools_template_modification_list_c.json @@ -0,0 +1,9 @@ +{ + "template": "template_modification_list", + "description": "Show modification key", + "execution_order": 6119, + "enabled": true, + "action": "preg_replace", + "find": "#hint=\"(\\{\\$modification.description\\})\"#", + "replace": "hint=\"{{ $xf.development ? $modification.modification_key . '
' . $1 : $1 }}\"" +} \ No newline at end of file