Create a dynamic content spot for navigation
Create a dynamic content spot mapping to customize the theme for Top, Primary, and Secondary navigation. Change the yourTheme value to the name of the theme.
- Optional: For primary navigation add a custom property in the WP DynamicContentSpotMappings resource environment provider:
- Name the custom property yourTheme_primaryNav, assuming we are changing the primary level.
- Enter the value res:/wps/defaultTheme80/themes/html/dynamicSpots/navigation.jsp?rootClass=yourThemePrimaryNav&startLevel=1&levelsDisplayed=1&primeRoot=true..
- Modify the theme.html files for your theme and change the dynamic content spot id for the primary navigation from 80theme_primaryNav to yourTheme_primaryNav.
- Define the yourThemePrimaryNav style class in one of the .css files for your theme that gets loaded by one of the modules for the theme.
- If we are in development mode, restart the application for the theme. Otherwise, restart the portal server.
Parent: Customize navigation