Panneau N0C 04 EN 250 250
Get 15% discount on our partner PlanetHoster with the code PHA-ceikay

Maximenu with sound

More
10 years 10 months ago #32000 by markovic.mr
Hello, first - thanks for this great extension!

I am trying to add sound on hover to menu, different sound for each menu item. So far, I have managed to do this, but I need additional code in Maximenu - code that is automatically inserted by Maximenu itself.
So, in
Code:
<ul class="maximenuck">
I need additional info for the sounds after each link, it is supposed to look like this:
Code:
<li data-level="1" class="maximenuck item112 level1 " style="z-index : 11999;"> <a class="maximenuck " href="/my-link"><span class="titreck">My link</span></a> <audio src="images/audio/item112.mp3" class="sound" type="audio/mpeg"></audio> </li>

.mp3 file can be called like menu item id (e.g. item112.mp3, item113.mp3 etc) or menu item alias or menu item title, so for each menu item I have different sound files.

Can you please help me to achieve this?

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago #32004 by ced1870
Replied by ced1870 on topic Maximenu with sound
Hi and thank you

to do that you must do some template override to change the PHP code that renders the module. Some useful infos here
docs.joomla.org/J3.x:How_to_use_the_Template_Manager

CEd

Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago #32005 by markovic.mr
Replied by markovic.mr on topic Maximenu with sound
Yes, I am aware of that, but I have no idea where to look for that code, do you know which file is it?
I have actually managed to add the code using Jquery .insertafter() function, and it works, but I have to manually add audio filenames for each menu item - which is not exactly a problem, but it would be more elegant if the code would automatically add filename according to menu item id or alias.

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago #32008 by ced1870
Replied by ced1870 on topic Maximenu with sound
if you are using the default layout, the file is
modules/mod_maximenuck/tml/default.php

to put in your template html folder :)

Joomlack Webmaster and Developer

Please Log in or Create an account to join the conversation.

Time to create page: 0.200 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 757 guests and 5 members online