Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • robert5 Friend
    #124767

    using a separator gives a link to the home page.

    this didn’t work:
    http://www.joomlart.com/forums/topic/root-menu-link-problem/

    (couldn’t find the line of code he used)

    Doesn’t work on top level as separator, but does work in sub level…?

    Any tips to get the top level nav separator to not act as a link.

    Thanks

    kashxo Friend
    #237413

    Hi Robert5,
    Please open the file ja-menulib.php in folder templates/ja_sargas/ja_transmenu. From line 38 (or nearly) you will see this block of code:

    <blockquote>foreach ($rows as $v ) {
    $pt = $v->parent;
    $list = @$this->children[$pt] ? $this->children[$pt] : array();
    array_push( $list, $v );
    $this->children[$pt] = $list;
    }</blockquote>

    Please select the whole block and replace with this one:

    <blockquote>foreach ($rows as $v ) {
    if (($v->parent == ‘0’) && ($v->type == ‘separator’)) {
    continue;
    }
    $pt = $v->parent;
    $list = @$this->children[$pt] ? $this->children[$pt] : array();
    array_push( $list, $v );
    $this->children[$pt] = $list;
    }</blockquote>

    That will ignore the separator in the Top Navigation of Transmenu.
    Other menu type can be done similar.

    robert5 Friend
    #237507

    Warning: Invalid argument supplied for foreach() in /public_html/templates/ja_sargas/ja_transmenu/ja-transmenu.php on line 41

    Khanh Le Moderator
    #237653

    Please check what menu is loaded in file templates/ja_sargas/ja_transmenu.php in line 9:


    $japarams->set( 'menutype', 'mainmenu' ); // Source of menu

    robert5 Friend
    #237656

    $japarams->set( ‘menutype’, ‘top-menu’ );

    R

    kashxo Friend
    #237663

    This one should be (if you mean the default topmenu of Joomla!):
    $japarams->set( ‘menutype’, ‘topmenu’ );

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

This topic contains 6 replies, has 3 voices, and was last updated by  kashxo 16 years, 10 months ago.

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