-
AuthorPosts
-
January 3, 2008 at 2:22 am #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
kashxo
- Join date:
- April 2007
- Posts:
- 605
- Downloads:
- 0
- Uploads:
- 21
- Thanks:
- 11
- Thanked:
- 78 times in 40 posts
January 28, 2008 at 10:09 am #237413Hi 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.January 29, 2008 at 5:30 am #237507Warning: Invalid argument supplied for foreach() in /public_html/templates/ja_sargas/ja_transmenu/ja-transmenu.php on line 41
Khanh Le Moderator
Khanh Le
- Join date:
- November 2013
- Posts:
- 1884
- Downloads:
- 41
- Uploads:
- 31
- Thanks:
- 44
- Thanked:
- 203 times in 131 posts
January 30, 2008 at 6:58 am #237653Please check what menu is loaded in file templates/ja_sargas/ja_transmenu.php in line 9:
$japarams->set( 'menutype', 'mainmenu' ); // Source of menu
January 30, 2008 at 7:05 am #237656$japarams->set( ‘menutype’, ‘top-menu’ );
R
-
AuthorPosts
This topic contains 6 replies, has 3 voices, and was last updated by kashxo 17 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum