Dear Open Hub Users,
We’re excited to announce that we will be moving the Open Hub Forum to
https://community.blackduck.com/s/black-duck-open-hub.
Beginning immediately, users can head over,
register,
get technical help and discuss issue pertinent to the Open Hub. Registered users can also subscribe to Open Hub announcements here.
On May 1, 2020, we will be freezing https://www.openhub.net/forums and users will not be able to create new discussions. If you have any questions and concerns, please email us at
[email protected]
Please help me to cope with it
I have translated all items (contents, sections.. and menu into English). My Website is in Lithuanian. English menu of course should be shorter than Lithuanian.
The problem is that, when I change language, English menu show all items translated and not translated, published and not published. I don't like this !
I don't find solution how to hide not translated and not published menu items on English menu.
Next I found other solution for English menu. I did copy of mainmenu and called it mainmenuen. Mine menu had 109 items with all subitems. The problem was that all menu was copied to one level without submenu. What I did, I did large work- did submenu items by hand and translated it into English.
The great solution was that with this mainmenuen I could hide all unnessesary menu itmes which are not necessary for English website. So I have clena English menu.
Now I have problem how to forse Joomla to show these two menus (lithuanian mainmenu and English mainmenu_en) in direct way by switching a language.
I read a help JommFish file and don't understand:
There is writtten: If the current language is XXX, then load module position Y.
english
This is a simple way to make some module to appear only in some languages.
Example:
if( $mosConfig_lang !=) { ?>
german" ) { ?>
if( $mosConfig_lang !=
<?php mosLoadModules( 'user6' ); ?>
<?php } ?>
I understand that I should set user5 for one menu, user6 for another.
MY QUESTION ARE:
<?php
if( $mosConfiglang != english
) { ?>
<?php mosLoadModules( 'user5' ); ?>
<?php } ?>
<?php
if( $mosConfiglang != german
) { ?>
<?php mosLoadModules( 'user6' ); ?>
<?php } ?>
I hope to get answer...
Thank you for advance
P.S, The Codes didn't appear in my message. Hope you understand what they are in scetion 10. Template tricks and tips
Sorry, user 5 and user 6 don't work for my template at all
Is it possible to change something in Javascript menu, which was in template and depends only from default mainmenu ?