Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • inamike Friend
    #123494

    I have added menu Nr. 2 under main menu to be able to have more links on left side without having more than 4 links on top.
    When I click on any link from this menu, header image stays the same. I need them to rotate.

    What is the solution?

    inamike Friend
    #231775

    The header images for the whole site does not always rotate but tend to get stuck.

    I have read several people posting this issue, but no answer / solution.

    Anyone?

    Khanh Le Moderator
    #231788

    The header images are rotated according to the main menu level currently.

    What kind of the rotation do you want?

    inamike Friend
    #231822

    Just any rotation… if user starts clicking on menu nr. 2 there is the same image that stays on in the header, regadless hwere user moves within the menu nr.2.

    If user clicks on main menu, header images rotate.

    Is there a way to add more links on the main menu, but only 4 of them be dispayed in top (since all the main menu links display on top as well and owerflow)?
    Hope that makes sense….

    Khanh Le Moderator
    #231825

    Ok, you could modify a function inside file ja_templatetools.php to get that effect. Search function getCurrentMenuIndex and replace with following function


    function getCurrentMenuIndex(){
    global $Itemid, $database, $mosConfig_shownoauth, $my;
    //Get top menu id;
    $id = $Itemid;
    $menutype = 'mainmenu';
    $ordering = '0';

    $sql = "select parent, menutype, ordering from #__menu where id = $id limit 1";
    $database->setQuery($sql);
    $row = null;
    $database->loadObject($row);
    if ($row) {
    $menutype = $row->menutype;
    if ($menutype != 'mainmenu') return 0;
    $ordering = $row->ordering;
    }else return 0;

    if ($mosConfig_shownoauth) {
    $sql = "SELECT count(*) FROM #__menu AS m"
    . "nWHERE menutype='". $menutype ."' AND published='1' and ordering <= $ordering";
    } else {
    $sql = "SELECT count(*) FROM #__menu AS m"
    . "nWHERE menutype='". $menutype ."' AND published='1' AND access <= '$my->gid' and ordering <= $ordering";
    }
    $database->setQuery($sql);

    return $database->loadResult();
    }

    inamike Friend
    #231839

    Khanh Le, thank you for a quick answer.

    I replaced the function with the code. Images are still not rotating in the menu nr.2. Am I missing something?

    Khanh Le Moderator
    #231857

    Do you have a live site url?

    schulschmidt Friend
    #232110

    Hallo professionals, do you solf this problem ?
    I am also interested …

    inamike Friend
    #232355

    <em>@Khanh Le 30807 wrote:</em><blockquote>Do you have a live site url?</blockquote>

    I sent you link in PM.

    stefiart Friend
    #234187

    Yes do we have a sollution here?

    Thanks

    orsat Friend
    #234254

    same problem here…hope someone solves this soon

    coldclimber JA JobBoard
    #235220

    I also have a problem with the header images not rotating, at first they did through the pages but once i moved the menu about and reordered my pages to the way i want them everything just stopped working. I know with other templates not from JA you can just redorder your menu and everything would still work, this is very anoying as i need this to work. I have tried to duplicate the template and call it JAM2 but even assigning another template to a page does not work.

    Anyone one know how to fix the header images ?????

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

This topic contains 12 replies, has 6 voices, and was last updated by  coldclimber 16 years, 5 months ago.

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