为导航创建动态内容点
创建动态内容点映射来为“顶部”、“主要”和“辅助”导航定制主题。将 yourTheme 值更改为主题的名称。
过程
- 可选: 对于主要导航,将子添加项添加到主题的 plugin.xml 文件中的 wp_dynamicContentSpots_85 模块。plugin.xml 文件位于 wp_profile_root\installedApps\cell\YourTheme.ear\YourTheme.war\WEB-INF 文件夹中。
- 假定要更改主级别,请将子添加项命名为 ref-id yourTheme_primaryNav。
- 输入 URI 值 mvc:res:{war:context-root}/themes/html/dynamicSpots/navigation.jsp?type=primary,smartphone@,tablet@。 例如,
<sub-contribution type="markup" ref-id="yourTheme_primaryNav"> <uri value="mvc:res:{war:context-root}/themes/html/dynamicSpots/navigation.jsp?type=primary,smartphone@,tablet@"/> </sub-contribution>
- 修改主题的 theme.html 文件,并将主要导航的动态内容点标识从 85theme_primaryNav 更改为 yourTheme_primaryNav。
- 在主题的其中一个由某个主题模块装入的 .css 文件中定义 yourThemePrimaryNav 样式类。
- 如果您处于开发方式,请重新启动主题的 Web 应用程序。否则,请重新启动门户网站服务器。