test
Viewing 1 post (of 1 total)
  • Author
    Posts
  • zealand Friend
    #143125

    Further to post #20 by guffus in thread “Joomla 1.0Joomla 1.5Problem Unrevealed bug in Main Menu – Menu link ALIAS” in the JA Mageia forum I have used the same fix to solve the same problem in JA Labra.

    The original code is very slightly different so the change in /templates/ja_labra/ja_menus/Base.class.php is immediately after line 129 $data = null; ….

    replace

    $tmp = $item;

    if ($tmp->type == ‘menulink’)
    {
    $menu = &JSite::getMenu();
    $alias_item = clone($menu->getItem($tmp->query[‘Itemid’]));
    if (!$alias_item) {
    return false;
    } else {
    $tmp->url = $alias_item->link;
    }
    }

    with

    if ($item->type == ‘menulink’)
    {
    $menu = &JSite::getMenu();
    if ($alias_item = $menu->getItem($item->query[‘Itemid’])) {
    $tmp = clone($alias_item);
    $tmp->name = $item->name;
    $tmp->mid = $item->id;
    $tmp->parent = $item->parent;
    $tmp->url = $alias_item->link.’&Itemid=’.$item->query[‘Itemid’];
    } else {
    return false;
    }
    } else {
    $tmp = clone($item);
    $tmp->name = $item->name;
    }

    All the credit goes to guffus and one has to wonder how many other templates have this problem and why JoomlArt doesn’t update them all. Moderators, if this problem is widespead please post fixes as sticky in the relevant forums.

Viewing 1 post (of 1 total)

This topic contains 1 reply, has 1 voice, and was last updated by  zealand 15 years, 5 months ago.

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