Knowledge Base support case for AllWebMenus,  abstracted and stripped of all user’s private info.


Initial Email From:
Gisbert
Initial Email Subject: Google Translator within a menu
Support Case Month: May 2013

Hello ,

I want to implement a Google translator within my AllWebMenus.

Here is the code  with one of my website pages.

This is the meta data:

<meta name="google-translate-customization" content="80d0ad144bd83465-b5af1067486ce75c-gf85d3def40656a45-2f"></meta>

and this the code for the language choose box:

<div id="google_translate_element"></div><script type="text/javascript">
function googleTranslateElementInit() {
  new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE, autoDisplay: false, gaTrack: true, gaId: 'UA-1699958-2'}, 'google_translate_element');
}
</script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>

I implemented it by HTM Full mode, but it doesn't work.

I can't get this run within the menu.

Any chance to get it run. I think that is a areal good feature within a menu

Thanks for your help in advance

Cheers

Gisbert

Reply From: Likno Customer Support

Dear Gisbert,

Indeed adding <script> tags within a menu element can cause unpredictable results.

The best way to implement what you want, is to do it within your actual page. To do this, you will need to change your menu into a “UL/LI” menu that takes its structure from your HTML page.

The screenshot below shows you how to change the menu to “UL/LI” and how to get the sample menu code to use in your page:

ul li menu

Note that UL/LI menus require that you have the population code in each page where the menu appears. For this reason, we highly recommend that you create an include file and put the code there, so that it is easier to maintain in the future.

You can get more help regarding this feature within the application help (just click on the question mark above the “settings” link).

Best Regards,
Kostas
Likno Customer Support
www.likno.com
Powerful javascript menus (CSS menus/drop-down menus/sliding menus), web trees, buttons, tabs, modals, tooltips, accordions, scrollers, designs for your websites!

Reply From: Gisbert

Thanks a lot for the fast answer.
I will see what I can do , maybe I stay with the menu as it is and I implement the translator free on the page.
Have a nice day
Cheers
Gisbert

Tags: , , , , , , , , , ,