I have a question about this addon and its interaction with the Page Manager addon.
This addon puts a different Legend in the Panel depending on which tab is showing. For the discussions tab, it checks if $Context->SelfUrl == "index.php"
If one is using the Page Manager addon, custom pages also have a SelfUrl == "index.php". So the irrelevant Legend shows up on that custom page.
Now I've fixed this by changing this addon to check if $PageMng->CurPage == 0 rather than the SelfUrl, but of course this breaks if the page tabs are reordered by Page Manager. Plus, I'm hard coding a dependency that breaks Legends when I disable the Page Manager.
So my questions are:
1) Is there a better/another way to check to see if the Discussions tab is showing?
2) Should Page Manager be changing the SelfUrl to avoid this interaction?
Still learning about Vanilla...
Comments