Dropline Menu show

Responsive Joomla template for Entertainment and Music purpose with clean and lightweight design.
GK User
Thu Apr 19, 2012 9:38 am
Is is possible to have the dropline menu show the submenu items for the home page without having to hover over it. I have the menus items there but when the home page loads they don't show until I hover over the home menu item - which is not whay I need - I need the submneu items for the home page to be visible upon load - can this be done?

regards

Paul
User avatar
Junior Boarder

GK User
Thu Apr 19, 2012 4:27 pm
Hi Paul,

Can you give me your site URL to check?

Thanks,
User avatar
Platinum Boarder

GK User
Fri Apr 20, 2012 5:06 pm
Hi Don

this is the url for now - I'm just drafting it together at the moment - so not much tere

regards

Paul



http://dragonfruit.active-ns.com/~intali01
User avatar
Junior Boarder

GK User
Sat Apr 21, 2012 11:43 am
Thanks Paul, I see the problem now. Before going further, can you please make sure that you are using the latest version of the template? If you are, then please provide me FTP access then I will try to debug and fix for you.

Cheers,
User avatar
Platinum Boarder

GK User
Tue Apr 24, 2012 9:42 am
Hi Don

the ftp details are as follows

[access info removed by moderator]

do you need me to set you up as a user as well?

regards

Paul
Last edited by GK User on Tue Apr 24, 2012 4:30 pm, edited 1 time in total.
Reason: Removing account details.
User avatar
Junior Boarder

GK User
Tue Apr 24, 2012 4:28 pm
Hi Paul,

It's very risky when you put those access info here a public place, you'd better have sent it to me via a PM instead. I'll remove it right now.

I will check and update you later.
User avatar
Platinum Boarder

GK User
Wed Apr 25, 2012 11:50 pm
Hi,

This is a bug of our template and I fixed it for you. I will ask our developer to add the fix to the next version as well.

Cheers,
User avatar
Platinum Boarder

GK User
Thu Apr 26, 2012 12:00 am
Here is solution for any other user has the same issue:

- File: /templates/gk_music/js/menu.gkdropline.js

- After:
Code: Select all
var submenus = document.id('gkSubmenu').getElements('#gkDropSub > ul');


- Add:
Code: Select all
var mainmenus = document.id('gkDropMain').getElements('li');


- Change:
Code: Select all
submenus.each(function(el, i) {
         if(el.hasClass('active')) currentsub = submenus[i];
      });


- To:
Code: Select all
mainmenus.each(function(el, i) {
         if(el.hasClass('active')){
            currentsub = submenus[i];
            currentsub.setStyle('left', 'auto');
            currentsub.setProperty('class', 'active');
         }
      });


- Complete file:
Code: Select all
window.addEvent('load', function() {
   var main = document.id('gkDropMain');
   var sub = document.id('gkDropSub');
   
   if(main) {
      var submenus = document.id('gkSubmenu').getElements('#gkDropSub > ul');
      var mainmenus = document.id('gkDropMain').getElements('li');
      var currentsub = null;
      
      mainmenus.each(function(el, i) {
         if(el.hasClass('active')){
            currentsub = submenus[i];
            currentsub.setStyle('left', 'auto');
            currentsub.setProperty('class', 'active');
         }
      });
      
      main.getElements('li').each(function(el, i) {
         el.addEvent('mouseenter', function() {
            if(currentsub) {
               currentsub.setStyle('left', '-999em');
               submenus.setProperty('class', '');
            }
               
            currentsub = submenus[i];
            currentsub.setStyle('left', 'auto');
            currentsub.setProperty('class', 'active');
         });
      });
   }
}); 
User avatar
Platinum Boarder

GK User
Thu Apr 26, 2012 9:18 am
Thank you very much Don for all your help

Just a quick question

Is there any way to add some custom text above the menu on this template - there doesn't appear to be a module position that allows this.

kind regards

Paul
User avatar
Junior Boarder

GK User
Thu Apr 26, 2012 4:16 pm
Find the solution in this topic to create a new module position for the purpose https://www.gavick.com/forums/postnote/ ... tml#p67691

Cheers,
User avatar
Platinum Boarder

GK User
Tue May 01, 2012 2:03 pm
Hi Don

I tried to follow the post in that link but there is no nav.php in the music template so not sure where to add the code as instructed

regards

Paul
User avatar
Junior Boarder

GK User
Tue May 01, 2012 4:11 pm
Hi Paul,

You can add the custom code to bottom of file \templates\gk_music\layouts\blocks\logo.php

Cheers,
User avatar
Platinum Boarder

GK User
Thu May 03, 2012 10:01 am
Thank you so much for all your help on this one

regards

Paul
User avatar
Junior Boarder

GK User
Thu May 03, 2012 4:22 pm
You are welcome Paul, feel free to let me know if you need any more helps.

Cheers,
User avatar
Platinum Boarder

GK User
Wed May 16, 2012 3:25 pm
Hello,

I have the same problem with the league news template.
I've tried your fix but it doesn't work.

How can I setup the template to display the dropline on each page without having to rollover it?

Thanks for your help
Philippe
User avatar
Junior Boarder

GK User
Wed May 16, 2012 11:05 pm
Hi Philippe,

Can you give me your site link to take a look?

Thanks,
User avatar
Platinum Boarder

GK User
Thu May 17, 2012 4:12 am
Yes of course, it's just the quickstart package here : http://ffsweb01.a51.fr/
Thanks
User avatar
Junior Boarder

GK User
Thu May 17, 2012 2:13 pm
Thanks for the link, I see the issue there. Are you sure that you've got latest version of the template? If it persists with the latest version then please provide me FTP access info via PM and I will try to fix for you.

Cheers,
User avatar
Platinum Boarder

GK User
Thu May 17, 2012 11:05 pm
I got your PM and fixed the issue for you.

In your template, the file to edit is: /templates/gk_league_news/js/gk.menu.js

Change the code of the first step in my earlier fix by:
Code: Select all
var mainmenus = document.id('gkDroplineMenu').getElements('li');

Cheers,
User avatar
Platinum Boarder

GK User
Thu May 17, 2012 11:19 pm
Thanks a lot :woohoo:
User avatar
Junior Boarder

GK User
Thu May 17, 2012 11:30 pm
No problem at all. Feel free to let me know if you need any further help.

Cheers,
User avatar
Platinum Boarder

GK User
Thu Jun 21, 2012 6:45 am
Hi guys,

This bug is fixed now please upgrade your template to the latest version to get it.

Cheers,
User avatar
Platinum Boarder


cron