Portal Page metadata (Alternative to theme policies)

The navigation attributes can be overidden by the page meta data also (overrides the theme policy values).

Instead of using the themePolicy directly, use EL variables initialized to the page meta-data values with the theme policy values as a default in case the attributes aren't specified in the page meta-data.

<portal-logic:pageMetaData varname="pageMetaData"><c:set var="renderTopNavigation"><c:out value='${pageMetaData["com.ibm.portal.themepolicy.renderTopNavigation"]}' default="${themePolicy.renderTopNavigation}"/></c:set><c:set var="topNavigationStartLevel"><c:out value='${pageMetaData["com.ibm.portal.themepolicy.topNavigationStartLevel"]}' default="${themePolicy.topNavigationStartLevel}"/></c:set><c:set var="topNavigationStopLevel"><c:out value='${pageMetaData["com.ibm.portal.themepolicy.topNavigationStopLevel"]}' default="${themePolicy.topNavigationStopLevel}"/></c:set>
</portal-logic:pageMetaData>

No comments:

Post a Comment