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

13»

Comments

  • Just a note. I think that I figured out what I did that might have caused my problem with Page Manager. When I created three additional tabs each time I created them and then I rearranged their order. One time I reordered the Discussions and Category tabs just swapping them in addition to re-arranging the three added tabs. Each time I did this at some point all tabs disappeared completely and the only way to get them back was to disable the Page Manager. The last time I tried to rearrange them I noticed that I was having a hard time getting them to save their position. It would look like they saved but then when I visited the page they were not rearranged as I wanted them. So I went back into setting to change them again only to have all the tabs disappear again. This last time I tried again and this time I paid attention to how I wanted the three additional tabs added and in what order. I created them with out moving them and so far so good. So I am guess that there is an ajax conflict or something. Just thought I would share my experience with this and Page Manager.
  • I can see what you mean with the new tab thing, it looks like you might have to give it a tiny bit before you start trying to change the order. However, I tried rearranging the hell out of some test tabs and nothing bad seemed to come of it. I don't know, maybe it's just because the server's running on the same computer, but I wouldn't think it's the extension (I even made a point of locking write permissions in the savetabs function)...
  • My Panel Order extension sometimes had difficulty saving positions of stuff and I never for the life of me worked out why...
  • Hi folks,

    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?
  • Adding whatever page it is that pagemanager uses (just the xxxx.php, not the postbackaction stuff) into that array should work fine...
  • I finally had to remove any custom tabs from my pagemanager to get it to work with the tabs disappearing. I instead added an Banner extension that Mark suggested that added my links in the top of the page like on this forum. That is working better for me it seems.
  • edited December 2006
    @Minisweeper:

    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? :/
  • @Ø: I think what you are talking about (if I have things correctly) is that the other extensions which add things to the Panel are not handling the custom PageManager pages well. If this is the case, you would have to edit those extensions and the appropriate page to the "if" statement in the extension.
  • Yep, you're right, but the problem is I don't see why some extensions show up while others don't. The menu items visible on a custom page seem to have "index.php" specified in their array, but so has the custom pages links list, and it doesn't appear on a custom page... I'm puzzled (and I barely understand PHP, which may be a big part of the problem :)
  • If you give me an example, I'll try to explain. I'm sure that it all has to do with the "if (in_array(" statement. The extensions that display the content, probably do not have this if statement.
  • I use the banner idea with my sites, same as here on lussumo... I then use the page manager extension and hide the tabs, and then i modified the code to not show the list either... so the links in my banner go to pages that look like the rest of the site...
  • Okay. Let's say I have three custom tabs made using the Page Manager extension. For example, one of them is called "Help" and includes a Vanilla FAQ. The content is written in the Page HTML input box, and Tab hidden from navigation? is checked. The two others tabs countain different stuff but have the same settings.

    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.
  • I would just create a top bar, or use the sidepanel extension to place it on every page...
This discussion has been closed.