Page 1 of 1

[Solved] Selected menu item not highlighted after 1.11.2

Posted: Tue Sep 25, 2012 6:15 am
by PBlue
By default, the selected menu item will be highlighted and this shows where I am. After upgrade to 1.11.2, the highlight disappears.

Please kindly adivse where could be the root of the problem.

Re: Selected menu item not highlighted after upgrade to 1.11

Posted: Tue Sep 25, 2012 6:03 pm
by Dr.CSS
There is a chance you were using a default menu template and some of them may have changed the class name or some such, look in pages source for the active menu item then look in the style sheet for the active menu class, change the style sheet to fix...

Re: Selected menu item not highlighted after upgrade to 1.11

Posted: Tue Sep 25, 2012 8:49 pm
by Rolf
You got an url for us?

Re: Selected menu item not highlighted after upgrade to 1.11

Posted: Wed Sep 26, 2012 3:35 am
by PBlue
Actually the site is still put in the intranet. After everything is normal, then it will go to the production site.

The screen below shows no highlighted menu item:
Debug-MenuItem-Not-Highlighted.png
The source htm for this page is attached.

Let me know if you want any other information.

Thanks a lot for your help!

Re: Selected menu item not highlighted after upgrade to 1.11

Posted: Wed Sep 26, 2012 7:53 pm
by Dr.CSS
I don't know what your style sheet says but this is the active menu item, the others that have children are here also...

<li class="menuactive"><a class="menuactive" href="http://

<li class="parent"><a class="parent" href="http://

Re: Selected menu item not highlighted after upgrade to 1.11

Posted: Thu Sep 27, 2012 5:59 am
by PBlue
Dr.CSS wrote:I don't know what your style sheet says but this is the active menu item, the others that have children are here also...

<li class="menuactive"><a class="menuactive" href="http://

<li class="parent"><a class="parent" href="http://
Sorry I don't know which is which and I attached relevant files for your reference. Let me know if you need more information. Thanks a lot for your help!

Re: Selected menu item not highlighted after upgrade to 1.11

Posted: Thu Sep 27, 2012 5:24 pm
by Dr.CSS
Sorry, I don't do zip attachments, this would be over in minutes if I had a link to the site...

Re: Selected menu item not highlighted after upgrade to 1.11

Posted: Fri Sep 28, 2012 3:41 am
by PBlue
Dr.CSS wrote:Sorry, I don't do zip attachments, this would be over in minutes if I had a link to the site...
Sorry I attached the templates in text format for your checking.

Re: Selected menu item not highlighted after upgrade to 1.11

Posted: Fri Sep 28, 2012 3:44 am
by PBlue
And the last file:Template (Left simple navigation + 1 column) (this file cannot be uploaded and I paste it here)

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<__html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- Change lang="en" to the language of your site -->

<head>

{metadata}

<title>{sitename} - {title}</title>
<!-- The sitename is changed in Site Admin/Global settings. {title} is the name of each page -->


<!-- Don't remove this! Metadata is entered in Site Admin/Global settings. -->

{stylesheet}
<!-- This is how all the stylesheets attached to this template are linked to -->

{cms_selflink dir="start" rellink=1}
{cms_selflink dir="prev" rellink=1}
{cms_selflink dir="next" rellink=1}
<!-- Relational links for interconnections between pages, good for accessibility and Search Engine Optmization -->


{literal}
<__script__ type="text/JavaScript">
<!--
//pass min and max -measured against window width
function P7_MinMaxW(a,b){
var nw="auto",w=document.documentElement.clientWidth;
if(w>=b){nw=b+"px";}if(w<=a){nw=a+"px";}return nw;
}
//-->
</__script>
<!--[if lte IE 6]>
<style type="text/css">
#pagewrapper {width:expression(P7_MinMaxW(720,950));}
#container {height: 1%;}
</style>
<![endif]-->
{/literal}
<!-- The min and max page width for Internet Explorer is set here. For other browsers it's in the stylesheet "Layout: Left sidebar + 1 column" -->


</head>

</__body>

<div id="pagewrapper">

<!-- start accessibility skip links -->
<ul class="accessibility">
<li>{anchor anchor='menu_vert' title='Skip to navigation' accesskey='n' text='Skip to navigation'}</li>
<li>{anchor anchor='main' title='Skip to content' accesskey='s' text='Skip to content'}</li>
</ul>
<!-- end accessibility skip links -->


<hr class="accessibility" />
<!-- Horizontal ruler that is hidden for visual browsers by CSS -->


<!-- Start Header, with logo image that links to the default start page. Logo image is changed in the stylesheet "For template: Left menu + 1 column" -->
<div id="header">
<h1>{cms_selflink dir="start" text="$sitename"}</h1>
<hr class="accessibility" />
</div>
<!-- End Header -->


<div id="home">
<br>
<p align="left">&nbsp;&nbsp;<strong><a href="http://www.keyoung.hk">Corporate Home</strong></a></p>
</div>

<!-- Start Search-->
<div id="search">
{search}
</div>
<!-- End Search -->


<!-- Start Breadcrumbs -->
<div class="breadcrumbs">
{breadcrumbs starttext='You are here' root='Home' delimiter='&raquo;'}
<hr class="accessibility" />
</div>
<!-- End Breadcrumbs -->

<!-- Start Content (Navigation and Content columns) -->
<div id="content">

<!-- Start Sidebar -->
<div id="sidebar">

<!-- Start Navigation -->
<div id="menu_vert">
<h2 class="accessibility">Navigation</h2>
{menu template='simple_navigation.tpl' collapse='1'}
</div>
<!-- End Navigation -->



</div>
<!-- End Sidebar -->


<!-- Start Content Area -->
<div id="main">
<div style="float: right;">{print showbutton=false script=false}</div>
<h2>{title}</h2>
{content} <br />

<!-- Start relational links -->
<div class="hr"></div>
<div class="right49">
<p>{anchor anchor='main' text='^ Top'}</p>
</div>
<div class="left49">
<p>{cms_selflink dir="previous" label="Previous page: "} <br />
{cms_selflink dir="next"}</p>
</div>
<!-- The label parameter doesn't need to be there if you're using English, but is here to show how it's used if you don't want the English text "Previous page" -->
<!-- End relational links -->

<hr class="accessibility" />
</div>
<!-- End Content Area -->


</div>
<!-- End Content -->


<!-- Start Footer. Edit the footer in the Global Content Block called "footer" -->
<div id="footer">
{global_content name='footer'}
</div>
<!-- End Footer -->


</div><!-- end pagewrapper -->
<__body>
</__html>

Re: Selected menu item not highlighted after upgrade to 1.11

Posted: Fri Sep 28, 2012 6:37 am
by PBlue
To make things simple, I put the menu I preferred as below:
Preferred Menu.png
This is actually from http://docs.cmsmadesimple.org/modules/core/menu-manager

Please advise how I can set my menu items like this.

Re: Selected menu item not highlighted after upgrade to 1.11

Posted: Sat Sep 29, 2012 12:06 am
by Dr.CSS
Since you wont give me a link to the site I'll give you one...

http://www.w3schools.com/css/default.asp

Re: Selected menu item not highlighted after upgrade to 1.11

Posted: Sat Sep 29, 2012 9:02 am
by PBlue
Dr.CSS wrote:Since you wont give me a link to the site I'll give you one...

http://www.w3schools.com/css/default.asp
Thanks Dr and I will study it :)