Floating Buttons with Vertical Menu

Hi,

I use Vertical Menu : http://verticalmenu.demo.offlajn.com/
It's possiblet to trigger menu opening from element id, link, ...

I want to open the menu with menu item of vertical menu module.
It works but it's not the best solution because the page must be refresh after the menu can open

The Vertical Menu module allow to insert this javascript code
$(".openmenu").click(function(e) {
e.stopPropagation();
e.preventDefault();
if(sm.popup) {
sm.openPopup();
} else {
sm.openMenu();
}
});

The menu may open if you add code =open
http://www.mystie/index.php=open

I contact the developper of Vertical Menu and he tells me that the ideal is to add a class parameter for the menu items of your module and after that it's possible to trigger the vertical menu with a class.

My site is on developpment and you can see it here :
Printscreen : https://prnt.sc/v0e227

http://www.add-line.com/test4/index.php?option=com_content&view=article&id=20&Itemid=232
       
  • Replied by admin on Friday, October 16 2020, 09:23 AM · Hide· #1
    Hi, Try this
    $(".jfab_btns_wrapper>div:first-child").click(function(e) {
    e.stopPropagation();
    e.preventDefault();
    if(sm.popup) {
    sm.openPopup();
    } else {
    sm.openMenu();
    }
    });
    Please post rating at the Joomla! Extensions Directory - http://extensions.joomla.org/profile/profile/details/264
  •  
  • Replied by langagemachine on Friday, October 16 2020, 10:46 AM · Hide· #2
    Hi,
    i change the code by your's.
    I forgive tto informe an additional line

    Here the complete code

    $(".jfab_btns_wrapper>div:first-child").click(function(e) {
    e.stopPropagation();
    e.preventDefault();
    if(sm.popup) {
    sm.openPopup();
    } else {
    sm.openMenu();
    }
    });


    location.search.match('menu=open') && sm147.openMenu();

    We progress ! Thanks.
    Just the page Menu appear and appear too 1 seconde after
    When i choose a menu item and i return to precedent page, my menu open too.

    I test to iphone
    In firefox th epage loading too.
  •  
  • Replied by langagemachine on Friday, October 16 2020, 10:47 AM · Hide· #3
    If you are okt i can give you admoinistrator ccess :)
  •  
  • Replied by langagemachine on Friday, October 16 2020, 04:05 PM · Hide· #4
    Thanks,
    how can i give you confidential access not visible in forum ?
  •  
  • Replied by admin on Saturday, October 17 2020, 12:42 AM · Hide· #5
    Hi langagemachine,
    Just the page Menu appear and appear too 1 seconde after
    I just tried it and it opens immediately but indeed the page is refreshed so the modal opened twice. I'm not familiar with vertical menu codebase so I think it's better to ask vertical menu developer and asking their assistance.
    Please post rating at the Joomla! Extensions Directory - http://extensions.joomla.org/profile/profile/details/264
  •  
  •  
    Replied by langagemachine on Saturday, October 17 2020, 04:13 PM · Hide· #6
    Ahhh ok,
    i'll give informe you ;)
    • admin - one week ago
      Sure ;) Thanks
Your Response
Please login first in order for you to submit comments