Welcome to TalkGraphics.com
Results 1 to 5 of 5
  1. #1

    Default Dynamic Page with vertical menu question - accordion?

    I currently have several sites using the dynamic page tweak with horizontal menus (including drop downs)

    I have a new website I have begun to design that will have a horizontal category menu. Interior pages will also require a vertical menu with submenu. There is a distinct possiblility in the future the submenus might be nested. Flyout is one option but an accordion would be less cluttered.

    The main body of each page will have dynamic content (dynamic page tweak)...

    Before I head down this path: my concern is if I end up with one menu with a very large accordian when open, what if the entire menu now exceeds the size of the page (dictated by the dynamic content).

    Is there a way around this problem?

  2. #2

    Default Re: Dynamic Page with vertical menu question - accordion?

    It appears from the lack of response there might not be a way to accomplish this or is my description of the problem unclear?

  3. #3
    Join Date
    Apr 2010
    Location
    Kildare, Ireland
    Posts
    906

    Default Re: Dynamic Page with vertical menu question - accordion?

    I just realised I'm having this same problem. I'm thinking it might be possible to use similar javascript that's in the dynamic page to adjust the page length when the accordian is expanded/collapsed.

  4. #4
    Join Date
    Apr 2010
    Location
    Kildare, Ireland
    Posts
    906

    Default Re: Dynamic Page with vertical menu question - accordion?

    OK I managed to get this working really good on the jquery accordian menu that I'm using.

    $(theElement) is the part of the accordian that slides in/out so this will vary depending on the script your using. It increases/decreases the page by the height of $(theElement).

    I put the follwing code in the jquery accordian menu script, the piece that expands the menu

    Code:
    /* start expand code for wd6 */
    var xri_height = $('#xr_xri').height()+$(theElement).height();
    var my_background_height = $('#my_background').height()+$(theElement).height();
    var my_footer_position = $('#my_d_footer').position();
    var my_footer_pos_top = my_footer_position.top+$(theElement).height();
    /* copy from your page the code below and change the clip bottom to 9999px or a value big enough to accomodate all menus expanded */
    $('#xr_xri').attr('style', 'width: 957px; clip: rect(0px, 957px, 9999px, 0px);');
    $('#xr_xri').height(xri_height);
    $('#my_background').height(my_background_height);
    $('#my_d_footer').css('top',my_footer_pos_top);
    /* end code for wd6 */
    And I put the follwing code in the code that contracts the menu
    Code:
    /* start contract code for wd6 */
    var xri_height = $('#xr_xri').height()-$(theElement).height();
    var my_background_height = $('#my_background').height()-$(theElement).height();
    var my_footer_position = $('#my_d_footer').position();
    var my_footer_pos_top = my_footer_position.top-$(theElement).height();
    $('#xr_xri').height(xri_height);
    $('#my_background').height(my_background_height);
    $('#my_d_footer').css('top',my_footer_pos_top);
    /* end code for wd6 */

  5. #5

    Default Re: Dynamic Page with vertical menu question - accordion?

    I will give this a try in next website I need a vertical menu... I ended up using a multi-layered horizontal menu - a bit more complex and not easy to maintain

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •