Phplayers menu shows twice Posted by prettiggeleerd 03 Oct 2009 12:35 UTC I created a horizontal topmenu using phplayers. How can I avoid that the same menu also shows in the sidebar?
Posted by Gary Cunningham-Lee 03 Oct 2009 13:02 UTC What menu id is your topbar menu using? Check what menus are assigned on the Admin Modules page, where the sidebar content (i.e., modules) are configured, to remove or change menus being displayed in a module. -- Gary
Posted by prettiggeleerd 03 Oct 2009 13:20 UTC I have a module named topmenu_module with ID 51. In user modules I set it to {phplayers id=51 type=vert}. When I click 'assign' I can only choose left or right. When I delete the module from 'Assign/edit modules' it disappears, but the horizontal top menu also does. What am I missing here?
Posted by Gary Cunningham-Lee 03 Oct 2009 16:18 UTC From the sound of it, this seems to be a bug. Can you assign id=51 again to the topbar menu? I'll do a test to see if I get the same behavior. -- Gary
Posted by prettiggeleerd 03 Oct 2009 17:00 UTC I rebuilt the topbar_module, same result. I deleted it and set the main application menu as horizontal top menu. Same result: it also appears in the sidebar 😑
Posted by Gary Cunningham-Lee 04 Oct 2009 01:06 UTC Hmm. I checked by making sure a site was updated to Tiki 3.2, then made a new PHP Layers menu. I assigned this menu to the topbar, on the Look and Feel admin page, and made a new module and assigned the same menu to this module. Un-assigning the module had no effect on the topbar menu. I re-assigned the module with that menu to the left column, and then changed the topbar menu ID to another menu, and there was no change in the side-column menu; it still displayed the previous menu. Well, this is the expected behavior. The information for the topbar menu and the menus in modules are stored in different places in the database, so it's hard to see how changing one would have any effect on the other. In this test, I used the standard methods for configuring the top bar menu on the Look and Feel Admin page (just turning on "Top Bar" and "Site Menu Bar", and entering the menu id number); I didn't use custom code in any way. Is this the same way you made your top menu? By the way, PHP Layers menus will be phased out, with Superfish CSS menus taking their place, probably before the release of Tiki 5 next spring. If this problem continues, you might want to see if switching to CSS menus has any effect. -- Gary
Posted by prettiggeleerd 04 Oct 2009 09:24 UTC Now I see what I did wrong. I forgot to change the topmenu ID in 'Look and Feel'. Now all works well. Thanks a lot!