From 6385f67e4278b9feeb6c55ff8db9416ad99d35ed Mon Sep 17 00:00:00 2001 From: MetallicAchu <40928922+MetallicAchu@users.noreply.github.com> Date: Wed, 14 Jul 2021 10:05:39 +0300 Subject: [PATCH] Added Tag Categories link from Tags page For some reason it wasn't there, so you had to manually type (address)/tags/categories For a while I had no idea it existed until I dug through the code, maybe that will expose users to that feature --- ext/tag_categories/main.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ext/tag_categories/main.php b/ext/tag_categories/main.php index c12771a7..e4ccc183 100644 --- a/ext/tag_categories/main.php +++ b/ext/tag_categories/main.php @@ -54,6 +54,13 @@ class TagCategories extends Extension ); } } + + public function onPageSubNavBuilding(PageSubNavBuildingEvent $event) + { + if ($event->parent=="tags") { + $event->add_nav_link("tag_categories", new Link('tags/categories'), "Tag Gategories", NavLink::is_active(["tag_categories"])); + } + } public function onPageRequest(PageRequestEvent $event) {