Mobile navigation | HCL Digital Experience
The HCL Digital Experience 8.5 ready-to-use theme provides two new responsive page navigation designs for mobile devices. One is aimed at smartphones, while the other is designed for tablets. The user agent for a device is parsed to determine which navigation to render on the portal page.
Smartphone navigation design
- Scroll up to display the navigation toggle: When the portal loads, this level of navigation is hidden to maximize the limited real estate on a smartphone.
- Tap the navigation button to show the navigation for your portal.
- Tap this link to return to the portal home page.
- Tap the name of the page to load a specific page.
- Tap the arrow near the page name to display the child pages for that page.
Tablet navigation design
- Tap the navigation button to show the navigation for your portal.
- Tap this link to return to your portal home page.
- Tap the arrow button to show the navigation.
- Tap the name of the page to open a specific page.
- Tap the arrow near the page name to display the child pages for that page.
Mobile navigation markup
The mobile navigation markup for both smartphone and tablet is created by the mobileNavigation.jsp file of the theme, found at PortalServer_root/theme/wp.theme.themes/default85/installedApps/DefaultTheme85.ear/DefaultTheme85.war/themes/html/dynamicSpots. The mobileNavigation.jsp file is controlled by the mobile navigation dynamic spot in theme.html: dyn-cs:id:85theme_mobileNavigation
The navigation on mobile devices is rendered by the mobileNavigation.jsp
file. Therefore, the primary, secondary, breadcrumb, and side navigation that is used on the desktop
do not produce any output for a mobile device. The navigation is rendered for mobile, but is hidden
when the page loads. On a tablet, the arrow button in the banner can be tapped to reveal the
navigation. On a smartphone, the user can scroll up to see the first-level navigation pages. Since
smartphones have little real estate, site designers might want to hide certain first-level pages,
such as Administration, for these devices. Add the com.ibm.portal.mobile.Hidden
metadata to the page to hide certain first-level pages. By
default, the Administration, Application, and Tag Center pages are hidden.
.wpthemeMobileNav ul.wpthemeExpandNav {
/* navigation lists */
max-height: 100em;
}