travelI'm on Holidays until the 21 august.

The questions posted during this period will receive no answer, so please be patient and wait before posting in the forum. Thank you

New registrations are suspended during this period

Je suis en vacances jusqu'au 21 aout.

Je ne répondrai à aucune question postée durant cette période. Merci d'attendre mon retour. Merci

Les inscriptions sur le site sont suspendues pendant cette période

 

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Maximenu with sound

Maximenu with sound 11 Jan 2016 10:27 #32000

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
<ul class="maximenuck">
I need additional info for the sounds after each link, it is supposed to look like this:
<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 to join the conversation.

Maximenu with sound 11 Jan 2016 11:50 #32004

  • ced1870
  • ced1870's Avatar
  • Offline
  • Administrateur
  • Administrateur
  • Posts: 17656
  • Karma: 391
  • Thank you received: 2263
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

Please Log in to join the conversation.

Joomlack Webmaster and Developer

Maximenu with sound 11 Jan 2016 12:05 #32005

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 to join the conversation.

Maximenu with sound 11 Jan 2016 12:35 #32008

  • ced1870
  • ced1870's Avatar
  • Offline
  • Administrateur
  • Administrateur
  • Posts: 17656
  • Karma: 391
  • Thank you received: 2263
if you are using the default layout, the file is
modules/mod_maximenuck/tml/default.php

to put in your template html folder :)

Please Log in to join the conversation.

Joomlack Webmaster and Developer
  • Page:
  • 1
Time to create page: 0.301 seconds

Fast and powerful creation, customizable and responsive.

Read More

Qui est en ligne

We have 203 guests and no members online