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:
parent
32a308a07a
commit
6385f67e42
@ -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)
|
public function onPageRequest(PageRequestEvent $event)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user