Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Page Manager - Tab display quirk
This discussion has been closed.
Comments
I have a problem with Page Manager when hiding tabs from navigation. A list of tabs appears in the side panel and the links work fine. But this menu isn't displayed on custom pages, which is quite a problem if you want to navigate from a custom page to another...
I had a look at the usual place:
if(in_array($Context->SelfUrl, array("index.php", "categories.php", "discussions.php", "comments.php", "post.php", "account.php", "search.php", "settings.php")))
...and I tried to add various stuff here, like the names of my custom pages, their identifier, their URL in the browser, etc. Of course, nothing worked (I guess my method is quite lame). What should I do to make the custom page list appear in the panel on all pages?
I know, since messing with this array worked just fine for me with any other extension I needed to display on a particular page. But I can't figure how to handle this with the custom pages created by the Page Manager. Some extensions are displayed on these custom pages: Forum Statistics, Who's Online and Mark All Read. The others aren't, and I've no idea why, because the same kind of array is used and I didn't see any difference.
I suppose I missed something obvious here, but what?
Since Tab hidden from navigation? is checked, the tabs aren't displayed in the top menu. Instead of this, they appear as a list in the side panel. Until now, everything works fine, the list appear on each "normal" page (discussions, categories, search, etc.)
But if I click on Help (or any of the two other links in the list), the custom links menu won't show up on the Help page. I wish I could use the "if (in_array(" statement for the custom links menu to appear on the custom pages, but I don't know how since I don't know how to call a custom page in this statement.