test
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • geraintedwards Friend
    #164685

    I have a menulink menu item using the MegaMenu and have assigned a specific T3 profile for this menu item (which is the same at the one I assigned to the target menu item).

    What should happen is that the specified profile is picked up for both menu items BUT in fact the specified profile is ignored for the menulink menu item. Also if the system sef plugin is not enabled this URL is not even SEFfed

    The problem is in plugins/system/jat3/core/menu/base.class.php in the genMenuItem method. This method (at line 352) treats menulinks in a special way but doesn’t do enough.

    current code:

    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;
    }

    }

    Correct code is
    if ($tmp->type == 'menulink')
    {
    $menu = &JSite::getMenu();
    $alias_item = clone($menu->getItem($tmp->query['Itemid']));
    if (!$alias_item) {
    return false;
    } else {
    // GWE MOD
    if ((strpos($alias_item->link, 'index.php?') !== false) && (strpos($alias_item->link, 'Itemid=') === false)) {
    $alias_item->link = $alias_item->link.'&Itemid='.$alias_item->id;
    }
    $tmp->url = JRoute::_($alias_item->link);
    }

    }

    without the correction the Itemid is not set in the menu url and the correct profile is not assigned.

    Please fix this in the next release

    himangi Friend
    #395441

    Hi,

    As I understood your problem, if you assign some template profile to a certain menu item, in the frontend you should see theme related to the profile for that particular menu item but you are not seeing that. Please correct me if i am wrong.

    Please let me know if you still have the problem and update your admin and ftp details at http://support.joomlart.com/index.php?/Tickets/Ticket/View/73799 , if you want me to take a look. Kindly revert any changes you may have done in the plugin files, before giving me access, so that I can confirm if the issue is due to current plugin code..

    geraintedwards Friend
    #395481

    <em>@himangi 245864 wrote:</em><blockquote>As I understood your problem, if you assign some template profile to a certain menu item, in the frontend you should see theme related to the profile for that particular menu item but you are not seeing that. Please correct me if i am wrong. </blockquote>
    Only to menu alias menu types.

    This is a bug in the T3 framework and I attached the fix – please pass it on to the development team.

    If you create a menu alias menu item on your developoment server and run through the code in a PHP debugger you’ll see that $alias_item->link doesn’t include the Itemid part and so cannot set the correct theme.

    Geraint

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

This topic contains 3 replies, has 2 voices, and was last updated by  geraintedwards 13 years, 5 months ago.

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