Create a dynamic content spot for navigation
Create a dynamic content spot mapping to customize the theme for Top, Primary, and Secondary navigation.
- Optional: For primary navigation add a subcontribution to the wp_dynamicContentSpots_85 module in...
WP_PROFILE\installedApps\cell\myTheme.ear\myTheme.war\WEB-INF/plugin.xml
- Give the subcontribution the ref-id myTheme_primaryNav, assuming we are changing the primary level.
- Enter the URI value...
mvc:res:{war:context-root}/themes/html/dynamicSpots/navigation.jsp?rootClass=wpthemePrimaryNav%2520wpthemeLeft&startLevel=1,smartphone@,tablet@
For example,
<sub-contribution type="markup" ref-id="myTheme_primaryNav"> <uri value="mvc:res:{war:context-root}/themes/html/dynamicSpots/navigation.jsp?rootClass=wpthemePrimaryNav%2520wpthemeLeft&startLevel=1,smartphone@,tablet@"/> </sub-contribution>
- Modify the theme.html files for your theme and change the dynamic content spot ID for the primary navigation from 80theme_primaryNav to myTheme_primaryNav.
- Define the myThemePrimaryNav style class in one of the .css files for the 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