2013-10-14, 08:31:37
2013-10-15, 00:40:26
You have to replace get_navigation by a modified function.
Here's a way:
1. Create a component e.g. my-navigation with this content:
2. Edit your template and replace
by
Here's a way:
1. Create a component e.g. my-navigation with this content:
Code:
<?php
global $pagesArray;
$menu = '';
$currentpage = strval(return_page_slug());
$pagesSorted = subval_sort($pagesArray,'menuOrder');
if (count($pagesSorted) != 0) {
foreach ($pagesSorted as $page) {
$sel = ''; $classes = '';
$url_nav = $page['url'];
if ($page['menuStatus'] == 'Y') {
if ("$currentpage" == "$url_nav") { $classes = "current active ". $page['parent'] ." ". $url_nav; } else { $classes = trim($page['parent'] ." ". $url_nav); }
if ($page['menu'] == '') { $page['menu'] = $page['title']; }
if ($page['title'] == '') { $page['title'] = $page['menu']; }
$menu .= '<li class="'. $classes .'"><a href="'. find_url($page['url'],$page['parent']) . '">'.strip_decode($page['menu']).'</a></li>'."\n";
}
}
}
echo exec_filter('menuitems',$menu);
?>
2. Edit your template and replace
Code:
get_navigation(return_page_slug());
Code:
get_component('my-navigation');
2013-10-15, 01:39:43
or js
Code:
$('*[title]').removeAttr('title');
2013-10-15, 01:39:54
Thank you very much! It works perfectly
2013-11-19, 07:48:54
(2013-10-15, 01:39:43)shawn_a Wrote: [ -> ]or js
Code:$('*[title]').removeAttr('title');
Should this also work with an i18n drop menu? I'm trying to remove the title so it doesn't cover up my first drop menu item. I added your line of js in the template surrounded by script tags. I think I am missing something here....