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
This commit is contained in:
MetallicAchu 2021-07-14 10:05:39 +03:00 committed by Shish
parent 32a308a07a
commit 6385f67e42

View File

@ -55,6 +55,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)
{
global $page, $user;