Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • xengent Friend
    #946154

    I’d like to do one of the following.

    • have the page scroll to the accordion item that was just clicked. or
    • be able to open AND close an item (currently I can’t close an item). or
    • be able to have multiple items open at the same time

    My problem is that I have long articles, so I scroll down to read, and when I click on the next item the long article closes and a short article opens, so I’m NOT at the part of the page where I want to be.

    How can I scroll to the "active" item? Or even better, be able to have multiple items open at the same time (not auto-close items)?

    Saguaros Moderator
    #946446

    Hi

    Could you put the URL of that page here so we can see how it looks like?

    xengent Friend
    #947792
    This reply has been marked as private.
    xengent Friend
    #947794
    This reply has been marked as private.
    Saguaros Moderator
    #947935

    Hi

    By default, this module doesn’t provide these options, you will need to customise JS code in this module to achieve that. Or get a quote here.

    xengent Friend
    #948149
    This reply has been marked as private.
    Saguaros Moderator
    #948636

    I understand your point but this extension is pretty old, it was created long time ago.

    I’ve also passed to the team for further consideration on implementing these features. You can check its status here: http://pm.joomlart.com/browse/JAECMODEACCORDIONJ17-60

    Mr.Cat Moderator
    #1085430

    @xengent

    This code helps you "scroll to element that has been clicked". Add it to module layout, inside of script tag.

    jQuery(document).ready(function() {
        jQuery('.ja-accordion-title').on('click', function() {
            var elm = jQuery(this);
            setTimeout(function(){
                var top = elm.offset().top - 56;
                jQuery('html,body').animate({scrollTop:top}, 300);
            }, <?php echo intval($params->get('duration'))?> + 100);
        });
    });

    Wisdom is not a product of schooling but of the lifelong attempt to acquire it.

Viewing 8 posts - 1 through 8 (of 8 total)

This topic contains 7 replies, has 3 voices, and was last updated by  Mr.Cat 6 years, 10 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum