+

Search Tips   |   Advanced Search

Create a dynamic content spot for navigation

Create a dynamic content spot mapping to customize the theme for Top, Primary, and Secondary navigation.

  1. 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

    1. Give the subcontribution the ref-id myTheme_primaryNav, assuming we are changing the primary level.

    2. 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->
             <uri value="mvc:res:{war:context-root}/themes/html/dynamicSpots/navigation.jsp?rootClass=wpthemePrimaryNav%2520wpthemeLeft&amp;startLevel=1,smartphone@,tablet@"/>
         </sub-contribution>

  2. 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.

  3. 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.

  4. If we are in development mode, restart the application for the theme. Otherwise, restart the portal server.


Parent Customize navigation