We are setting up a Kunena forum ahead of a big migration and are currently testing the settings and layout. We chose the JD New York template for displaying the forum since the layout looks very clean and comes close to what our users are used. A big thank you for the template.
Today, I was playing around with the "hide on mobile" setting for the menu after a user suggested that it takes up too much space on a small screen. Doing so I "lost" the menu position in the layout. And I'm at a loss on how to get it back.
The red arrow indicates where it used to say "menu". Needless to say, the menu is no longer being displayed.
The settings of the particular section are on the right (the gear icon), I'd say just have a look in again and try to undo what you did.
That's what I tried several times. I'm convinced there was no menu to select from in Module Position. It looked like displayed:
That's why I was at a loss. While waiting for some advice, I had a look at the Helix3 documentation which somehow pointed me to the menu modules. I discovered that one menu module was no longer published. I believe it was the Main Menu. That is also used in another template for the main site. We use different templates for main site and forum. Yet, on the main site the menu was still shown.
When I read your reply, I went back to take a screenshot of the available Module Positions. Lo and behold, the menu position was listed once more. For now the problem is solved. But I'm hesitant to play with the hide options again... Any idea why playing with these options may have an effect on the menu position?
It's hard to assist without being able to look at it. Is the site online? Can you post a link to it?
The site is online but guarded by a htaccess password. One measure to protect ourselves from accidentally publishing sensitive data while we are still testing.
Thanks for helping me help myself. I'm usually at the other end of these mysteriously vanishing issues.
Btw, what's the template in use on this site? Looks pretty good as well. I guess you did some advanced customization of the Kunena styling and code. Am I right?
Unfortunately on my side things are not so sunny. On the upside: I have a way to reproduce the disappearance of the menu position. And I also know how to get it back. It's quite a long story, which I will post later. It's already way past midnight over here (CET) and I have to get up early.
The administrator has disabled public write access.
Menu position disappeared
10 months 2 weeks ago #10729
Ok. Here is my story. It's a long story (you can skip the spoiler). I've been thinking about it and my guess so far the issue is in either Helix3 or our Joomla installation. Any pointers on how to further troubleshoot are greatly appreciated.
Warning: Spoiler![ Click to expand ][ Click to hide ]
Our website has been running on Joomla for quite some time. For our members, we are motorcycle club, we are also running a forum next to our website. The forum is powered by SMF and also accessible to the public. People can register for the forum without enrolling as a member. Although, part of the forum is limited to members. This means we have to maintain two separate sets of user information, which somehow need to be kept in sync. There are some tools helping us to achieve that, But, since our member administration has been moved to Joomla (on a different, completely separate website) after we started website and forum, we decided to bring everything together, so we have a single website for information, forum and membership administration.
The starting point of our adventure is our current website. To that we added Kunena and migrated the data from SMF to it - all in a test environment without public access for now. Aiming to make the transition as painless as possible for our users, we decided that look & feel of the new forum needed to be very similar to our current forum. The standard Kunena templates weren't helping. We found JD NewYork after trying a couple of other templates, which also didn't work out.
I simply installed the template, made a few adjustments and assigned it to the forum pages. It looked great right out of the box and we were happy.
Dark Clouds on the Sky
I explored the style configuration to familiarize myself with the available options. I didn't change much since for the bigger part everything was looking well. I did tune the CSS using a custom.css file in the css folder of the JD NewYork template. Not really my cup of tea. But, having a background in IT, I picked up on CSS fast and the forum was looking better still.
We decided to have a small group of active forum users, take the test site for a test drive. Doing so, suggestions were made on further improving layout and functionality. One of the comments was the main menu being too large when viewed on a mobile phone. I had come across the option in the layout positions to hide certain elements when viewed on mobile.
So, I went into the menu settings and enabled Hide on Mobile to see what the result would be. I was assuming at that point that the Kunena Menu would still be accessible since it had been tied to the Offcanvas position. I was wrong. The main menu disappeared on mobile and so did the offcanvas menu. No big deal, I thought. Just go back to the settings and reverse your changes. Lo and behold, where it said menu before, nothing was shown. The check mark in the settings was also gone. I quickly checked the forum pages on the desktop site and the main menu was empty. The logo was still there and the background of the menu, but not the menu itself.
In the Module Position drop down menu I could no longer select menu. In fact, I never could as I discovered later.
Thunderbolt & Lightning...
...very, very frightening
That's when I cam here seeking help. I also pulled up the Helix3 documentation to hopefully find some hints in how to recover. It mentioned menu modules. Something I so far had no reason to look at or touch. I browsed through the settings and saw that our main menu was not assigned to any position. Hmm? I chose the menu position inside the JD NewYork template. But it didn't bring the menu back. All the time the menu on the main site was still there. I was confused. I thought I just learned something just to dismiss it again right away.
Our main site uses the Gantry 5 Helium template. In the menu settings it defaults to Default, meaning it will use the the menu that is marked as default in Joomla. That probably explains why the menu didn't disappear even though it was not assigned to any position.
Meanwhile, Chetan replied to my cry for help suggesting to go back into the settings and undo. But I had no menu position. So, I decided to take a screenshot to show it. To my surprise, the menu position was back. I was flabbergasted. It was late and I decided it might just have been one of those moments. It was not.
I restored the menu position, but that lead to the double menu quirk. The main menu was shown twice - formatted as before and unformatted in a vertical alignment. I read on this forum that this happened when a module was assigned to the same position. I quickly removed the position assignment for the main menu and thought everything was hunky dory again. It appeared that way. Site and forum looked as before.
Yet, going back into the layout settings, while the menu position was shown in the overview, it wasn't shown as selected in the Menu Position inside settings (cog wheels). I hesitated for a while not wanting to mess things up again. I decided against it, preferring to better understand than to ignore. As soon as I made a change and pushed Apply, I had successfully destroyed the main menu on JD NewYork powered pages.
I'm still at a loss. I can reproduce the erroneous behavior, but I haven't got a clue how to straighten that out.
the reason the menu position might not show up is because there might not be a module published to it.
2 way's the module positions drop down is compiled.
1. TemplateDetails.xml file positions.
2. All active & published modules.
Either way, If you'd like me to take a look, please email me your site's backend login at chetan at joomdev and I'll be more than happy to take a look in and fix it for you.
Will make sure not to mess up your live site and take a backup in case things head south.
On top of everything, I learned a new word "flabbergasted", english not being my mother tongue, this is helpful.
If you like our support and products, tweet us at joomdev and let the world know about it.
JoomDev is not affiliated with or endorsed by Open Source Matters or the Joomla! Project. The Joomla! logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.