Maximenu with sound
- markovic.mr
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 2
- Thank you received: 0
9 years 3 months ago #32000
by markovic.mr
Maximenu with sound was created 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
I need additional info for the sounds after each link, it is supposed to look like this:
.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?
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">
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.
9 years 3 months ago #32004
by ced1870
Joomlack Webmaster and Developer
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
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.
- markovic.mr
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 2
- Thank you received: 0
9 years 3 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.
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.
9 years 3 months ago #32008
by ced1870
Joomlack Webmaster and Developer
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
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.208 seconds