. <sigh> Life is hard!
// If at the top level
if (!$inside)
{
$itm .= ((!$selfAsLink && ($child['id'] == $modx->documentIdentifier)) || ($itsEmpty && $useCategoryFolders)) ?
// changed - sottwell
'<a href="javascript:;">'.$pre.$child[$textOfLinks].$post.'</a>' :
'<a href="[~'.$child['id'].'~]" title="'.$child[$titleOfLinks].'">'.$pre.$child[$textOfLinks].$post.'</a>';
$itm .= ($debugMode) ? ' top' : '';
}
// it's a folder and it's below the top level
elseif ($isFolder && $inside)
{
$itm .= ($itsEmpty && $useCategoryFolders) ?
// changed - sottwell
'<a href="javascrip:;">'.$pre.$child[$textOfLinks].$post.'</a>'. (($debugMode) ? ' subfolder F' :'') :
'<a href="[~'.$child['id'].'~]" title="'.$child[$titleOfLinks].'">'.$pre.$child[$textOfLinks].$post.'</a>'. (($debugMode) ? ' subfolder F' :'');
}
// it's a document inside a folder
else
{
$itm .= ($child['alias'] > '0' && !$selfAsLink && ($child['id'] == $modx->documentIdentifier)) ?
// changed - sottwell
'<a href="javascript:;">'.$child[$textOfLinks].'</a>' :
'<a href="[~'.$child['id'].'~]" title="'.$child[$titleOfLinks].'">'.$child[$textOfLinks].'</a>';
$itm .= ($debugMode) ? ' doc' : '';
}
$itm .= ($debugMode)? "$useCategoryFolders $isFolder $itsEmpty" : '';
<div class="sideblock" id="sideMenu"> <h2>Navigation</h2> [[DropMenu?subdiv=`true`]] </div>
/* side menu */
#sideMenu ul {
list-style:none;
}
#sideMenu a {
text-decoration: none;
padding:7px 5px 5px 5px;
margin:5px 0 5px 5px;
display: block;
color: #000000;
border-left:1px solid #ababab;
border-right:1px solid #ababab;
background:url(../images/barbg.jpg) top left repeat-x;
}
#sideMenu li.here a {
color:#3f729f;
}
#sideMenu li.here a:hover{
color:#821517;
}
#sideMenu div.subdiv a {
color:#000;
}
#sideMenu div.subdiv li.here a {
color:#3f729f;
}
#sideMenu a:hover, #sideMenu div.subdiv a:hover, #sideMenu li.here a:hover {
color: #821517;
}
#sideMenu ul li ul li a {
padding-left:20px;
}
#menucontainer li ul {
display:none;
}
#menucontainer li:hover ul {
display:block;
}
/* turn off sub-menus */
.menu ul ul {
display: none;
}
/* show the ones in the path were you are */
.menu li.here ul {
display: block;
}
The default template includes a behavior (.htc) file that makes IE support hover on any HTML element.
Scotty,
That’s very easy to do using "the cascade" coupled with the you-are-here class:
/* turn off sub-menus */ .menu ul ul { display: none; } /* show the ones in the path were you are */ .menu li.here ul { display: block; }