logo maximenuck 64Maximenu CK

Maximenu CK is a Joomla megamenu dropdown with nice effects.

logo slideshowck 64Slideshow CK

Slideshow CK, nice effect with this slideshow responsive design.

logo accordeonmenuck joomlaAccordeon Menu CK

Accordeon menu CK is a joomla accordion menu with mootools effects.

logo template creator joomlaTemplate Creator CK

Template Creator CK is a tool to create your own Joomla! templates.

Welcome, Guest
Username: Password: Remember me

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?
The administrator has disabled public write access.

Maximenu with sound 11 Jan 2016 11:50 #32004

  • ced1870
  • ced1870's Avatar
  • NOW ONLINE
  • Administrateur
  • Posts: 17490
  • Thank you received: 2232
  • Karma: 389
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
The administrator has disabled public write access.

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.
The administrator has disabled public write access.

Maximenu with sound 11 Jan 2016 12:35 #32008

  • ced1870
  • ced1870's Avatar
  • NOW ONLINE
  • Administrateur
  • Posts: 17490
  • Thank you received: 2232
  • Karma: 389
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
The administrator has disabled public write access.
Time to create page: 0.202 seconds
Powered by Kunena Forum

Mentions légales

Site made by Cédric KEIFLIN

Privacy policy

Copyright © 2010 - 2015

http://forum.joomlack.fr is not affiliated with or endorsed by the Joomla! Project or Open Source Matters. The Joomla!® name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.

Qui est en ligne

We have 106 guests and 5 members online