Here's the way to provide the functionality.
- Add child pages to the parent page being displayed on the portlet.
- Select
Options
- Select
Configuration
- Locate
included-layouts
configure forAll
and save - This enables the "layouts level-2" class to render in the HTML without the need for selection first. - Step 2
- Select
Look and Feel
- Navigate to
Advanced Styling
- Add the following CSS:
li.open ul.level-2 a {
border: none;
background: #E1E1E1;
text-indent: 15px;
}
li.open:hover ul.level-2 {
display: block;
}
If you have more than 1 navigation portlet on the page this implementation will effect all navigation portlets. The only way to isolate 1 portlet to enable this functionality is to:
- Select
Options
- Select
Configuration
- Locate
Bullet Style
configure forArrows
(default should beDots
) and save - This will change the HTML class fromnav-menu-style-dots
tonav-menu-style-arrows
.
Back in advanced styling add .nav-menu-style-arrows in front of li.open:hover ul.level-2 as shown below:
.nav-menu-style-arrows li.open:hover ul.level-2 {
display: block;
}
NOTE: I am aware of the Add a CSS rule for just this portlet
under Advanced Styling and it didn't seem to make a difference in this instance. I believe it's an underlying issue regarding the Portlet IDs being the same for each navigation portlets.
You have now added the hover CSS selector to a default navigation portlet!