Hey Guys,
I have this wayfindercall: "[!Wayfinder? &startId=`4`&innerClass=level2&outerClass=level1!]"
I get the following output:
<ul class="level1">
<li><a href="/terberg/index.php?id=2" title="Diciplines" >Diciplines</a>
<ul class="level2">
<li><a href="/terberg/index.php?id=3" title="Elektrotechniek" >Elektrotechniek</a></li>
<li><a href="/terberg/index.php?id=5" title="Werktuigkunde" >Werktuigkunde</a></li>
<li><a href="/terberg/index.php?id=6" title="Data/ICT" >Data/ICT</a></li>
<li><a href="/terberg/index.php?id=7" title="Beveiliging" >Beveiliging</a></li>
<li><a href="/terberg/index.php?id=8" title="Brandbeveiliging" >Brandbeveiliging</a></li>
<li><a href="/terberg/index.php?id=9" title="Service en Onderhoud" >Service en Onderhoud</a></li>
<li class="last"><a href="/terberg/index.php?id=10" title="Inspecties" >Inspecties</a></li>
</ul>
</li>
<li><a href="/terberg/index.php?id=11" title="Projecten" >Projecten</a></li>
<li><a href="
http://www.terberg-systeemintegratie.nl/communicatie.php" title="Ga naar systemen" Ga naar systemen>Ga naar systemen</a></li>
<li class="last"><a href="/terberg/index.php?id=14" title="Contact" Contact>Contact</a></li>
</ul>
I’ve the following css:
ul.level1, ul.level2, li.level1, li.level2{
display: block;
padding:0;
margin:0;
cursor: hand;
}
ul.level1 li ul.level2{
display: none;
}
ul.level1 li:hover ul.level2{
display: block;
}
ul.sub-menu-active{
display: block;
}
ul.menu li ul.sub-menu-active li{
background-color: #EAEAEA;
margin: 0;
margin-left: -50px;
list-style-type: none;
display: block;
height: 20px;
width: 148px;
border-style: solid;
border-color: #FFFFFF;
border-width: 1px 0px 0px 0px;
color: #3b84c5;
font-weight: normal;
padding-left: 20px;
}
ul.level1 li{
background-color: #3b84c5;
width: 158px;
list-style-type: none;
display: block;
line-height: 20px;
margin-bottom: 1px;
padding-left: 10px;
}
ul.level1 li a{
font-weight: bold;
color: #FFFFFF;
text-decoration: none;
}
ul.level1 li ul.level2 li{
background-color: #EAEAEA;
margin: 0;
margin-left: -10px;
list-style-type: none;
display: block;
height: 20px;
width: 148px;
border-style: solid;
border-color: #FFFFFF;
border-width: 1px 0px 0px 0px;
color: #3b84c5;
font-weight: normal;
padding-left: 20px;
}
ul.level1 li ul.level2 li a{
color: #3b84c5;
font-weight: normal;
text-decoration: none;
}
ul.level1 li ul.level2{
padding: 0;
}
When I hover on a level1 item, the childs are visible.
If a level2 child is active how is it possible to hold the level1 parent open? I think it’s only possible to change the classname level1.
How can I do that in Wayfinder or have someone an another solution or approach for this problem?
Thanks in advance,
PH-MJS