Search This Blog

Monday, May 23, 2016

How to create IBM Portal 8.5 Bread-Crumb?
  1. Create JSP pages to generate Portal Pages Bread-Crumb.
  2.  This JSP will iterate over all portal pages.
  3.  Bread-Crumb.jsp : 
 <%@ page session="false" buffer="none" %>   
 <%@ page trimDirectiveWhitespaces="true" %>  
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>  
 <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>  
 <%@ include file="../includePortalTaglibs.jspf" %>  
 <c:if test="${fn:length(wp.selectionModel.selectionPath) > (param.startLevel+1)}">  
 <div class="${param.rootClass} wpthemeLeft">  
  <c:forEach var="node" items="${wp.selectionModel.selectionPath}" varStatus="status" begin="${param.startLevel}" step="1">  
  <c:set var="nodeID" value="${wp.identification[node]}"/>  
  <c:set var="separator" value="&gt;" />  
  <c:if test="${!node.metadata['com.ibm.portal.Hidden']}">  
   <c:if test="${status.count > 1}">  
   <span class="wpthemeCrumbTrailSeparator">${separator}</span>  
   </c:if>  
   <c:choose>  
   <c:when test="${wp.identification[wp.selectionModel.selected] == nodeID}">  
    <strong><span class="wpthemeSelected" lang="${node.title.xmlLocale}" dir="${node.title.direction}"><c:out value="${node.title}"/></span></strong>  
   </c:when>  
   <c:when test="${node.contentNode.contentNodeType == 'LABEL'}">  
    <span lang="${node.title.xmlLocale}" dir="${node.title.direction}"><c:out value="${node.title}"/></span>  
   </c:when>  
   <c:otherwise>  
    <a href="?uri=nm:oid:${nodeID}"><span lang="${node.title.xmlLocale}" dir="${node.title.direction}"><c:out value="${node.title}"/></span></a>  
   </c:otherwise>  
   </c:choose>  
  </c:if>  
  </c:forEach>  
 </div>  
 </c:if>  


No comments:

Post a Comment