t3framework / t3

T3 Framework - (Core Plugin & Blank Template)
GNU General Public License v2.0
273 stars 160 forks source link

Multi-language menus not showing in Mega Menu in admin #83

Closed locii closed 11 years ago

locii commented 11 years ago

Hi folks,

I have a weird one from a user.

They have 3 languages setup on their site and a seemingly random issue is popping up where some menus wont load in the template admin.

This happens in T3 blank as well as our own theme.

There seems to be no rhyme to which one wont load.

There are no js issues in the backend. The loading gif appears for a time then disappears however the menu is invisible in the area below.

I know this is a weird one - but seems like a bug in T3 mega menu,

Oliver-Meyer commented 11 years ago

Hi,

I encountered the same problem yesterday.

The reason is that you can only see the menu of the currently active language on the frontpage.

So if you want to configure the mega-menu of a language in the corresponding style, you first have to select that language in the frontend. Please note, that you have to reload the backend if the corresponding mega-menu is already opened.

Yeah, this is a weird one :o)

Best regards,

Olli

locii commented 11 years ago

Oh great thanks for clarifying. Sounds like that may be the issue then.

Thanks

locii commented 11 years ago

Yes just confirmed this.

Test case:

  1. On a multi-language site visit first language on the front end. eg mysite.com/ru
  2. In the template admin only menus assigned to the RU language or to all languages will display.
  3. On a multi-language site visit first language on the front end. eg mysite.com/ET 4 In the template admin only menus assigned to the ET language or to all languages will display.
locii commented 11 years ago

Assigned Anderson to this task.

woluweb commented 11 years ago

Hi,

Having experienced the same problem (megamenu only showing for some languages in multilanguage website) with the JA Mero template of Joomlart, I shared the problem on their forum (see http://www.joomlart.com/forums/showthread.php?86688-Template-JA-Mero-gt-Mega-Menu-not-showing-in-Template-Manager-for-several-Styles...&p=373974#post373974)

I share here with you my further testing based on your discussion above. I reproduce therefore my post on Joomlart's forum hereafter.

Txs for your work on the question. It is appreciated ! :-)

Marc


So so. I have spent another hour or two to understand, test & try to find this workaround.

I am pleased to share here the result : this will save time to others hopefully !

Wat is the current understanding of the problem according to the Github discussion :

So, full of hope, I tried many times, even logging out, logging in, forcing refresh with CTRL+Shift+R in my browser (Google Chrome) etc. No way ! Whatever I did, no megamenu would show, except the "all languages" and (in my case) the "FR language".

So I went using my other computer... and there surprise : whatever I did on Front-End, no megamenu would show, except the "all languages" and the "NL language".

Very weird. So in my case, no matter what the language of the front-end was, each computer was showing megamenu only for ONE particular and different language.

Then I realised that the only editable language of megamenu shown in Navigation tab is always the one "announced" on the Layout tab. Example : Megamenu [mainmenu-fr] showing on top-left of the template of Layout tab => only French megamenu would show on Navigation Tab A click on the Reset Positions button or on the Reset All button would not change anything by the way...

So I was starting to feel desperate when I decide to try something else : I was having another behaviour with two different computers using the same browser. Why not trying another browser ?

There, miracle ! (very first time of my life I am happy of Internet Explorer I think ;-) ) With Internet Explorer I could reproduce the workaround suggested on Github (see above). (still, I don't understand the reason for this. Maybe a problem with the cache or something like this ?)

So if this workaround keeps working, I can at least go on with my work on this point.

Still I would appreciate a proper update of T3 or of the template and I am not the only one :-)

EJBJane commented 11 years ago

So if I understand correctly if am working on my site on the localhost and I'm using Firefox I will always have this problem but if I switch to IE I won't have this problem?

However considering this problem shows itself on the frontend of the website and there are still people visiting with other browsers than IE , won't these visitors still have the problem of the disappearing megamenu?

By the way (for us newbies) do I just copy the code in this file below and past it in my megamenu.php to make things work? https://github.com/andergmartins/t3/commit/73ed9ee2bdc3a066b1234eac86520a7d1f68f867

Oliver-Meyer commented 11 years ago

As far as I know, there is no problem with the megamenu on the frontend. The problem is, that if you have multiple languages and corresponding T3-styles configured, you can only work on the megamenu for the language in the backend, that is active in your browser - in the frontend - at that time.

Best regards,

Olli

EJBJane commented 11 years ago

Yep get it, that's also an issue but actually I've got the problem on the front end too and that's a bigger issue. When I use language switcher it rightly switches to the another language (so the homepage for that language) but I only can see the mainmenu (main navigationbar) for the language for which the megamenu is active in the backend. I'm still on local so sorry can't give any live urls for this but it's a big issue for me and eating into my dev time.

woluweb commented 11 years ago

Hi EJBJane, I only have the problem from the back-end, not the other way round like you. Have you checked whether your front-end works fine without the megamenu (because the multilanguage setup of a site is not very intuitive I must say). See here for a good presentation of "to do's" for a multilanguage site : http://downloads.joomlacode.org/frsrelease/7/3/0/73078/JD2012-Peter-multilanguage_v7.pdf

Yours, Marc

EJBJane commented 11 years ago

Actually I fixed my frontend problem by adding a new style in my T3 template (Argo) for each language but the other problem however still remains...Thanks Marc and Thor

cyperbg commented 11 years ago

I've been digging the whole internet for a solution for the past 3 days and my last ray of hope was this topic, but I see there is no official solution yet :(

So basically my website www.cyper.org has 2 languages - EN and BG I have no problems with the front end, only the backend, where only one menu is visible for editing. Here's my website structure:

3 Main Menus: Top Level Menu - All Languages - 1 menu item assigned as homepage EN Main Menu - EN Language - 7 Menu Items, one of each is assigned as homepage for that language and all set as EN language. BG Main Menu - BG Language - 7 Menu Items, one of each is assigned as homepage for that language and all set as BG language.

2 Root/Parent Categories for both languages + 2 child categories for each parent (total of 6) Each article has a copy in each language.

3 Templates: 1 - Language All with only one menu items assigned (Home from Top Level Menu) 2 - BG Language with all BG Menu Items assigned 3 - EN Language with all EN Menu Items assigned

I've tried the browser workaround with IE and Safari, but there was no difference - I can only edit one menu in the Template Manager/Template Name/Navigation

The weird part is I used to be able to edit the BG Menu, but it then switched to the EN Menu - no idea how I made that.

ONE POSSIBLE SOLUTION TO EDIT BOTH MENUS - I found out that if you switch OFF the "System - Language Filter" plugin then any menu is visible for editing. Obviously you have to turn ON the System - Language Filter plugin after you finish, because it is the main plugin needed for the multi language functionality ;)

I hope you fix the problem soon. If you need any help my skype is: cyper.bg

woluweb commented 11 years ago

Hi CyperBG, I have just tested your workaround, namely temporarily switching off the "System - Language Filter" plugin. It works for me too. I think it is the easier workaround so far. Yesterday came new version of T3-framework (1,2,6). I was hoping this problem would be fixed... not unfortunately it is not...

woluweb commented 11 years ago

One more thing : Now that we have a workaround to edit the megamenu for a multilanguage website, there is still a tricky behaviour : if some of the menus are not public (but for registered users for example), you cannot edit them either in Template Manager... except if you first log in in frontend. Otherwise they simply don't appear...

cyperbg commented 11 years ago

Just tested what you said and you are correct. But I guess you can just turn off your website, change the access of the menu items to public, edit them and then revert everything back. I personally doesn't have this problem, because everything on my site is public and no registration is required.

I've also installed the latest version 1.2.6, but the problem still exists.

joomlart commented 11 years ago

Fixed in 1.3.0