|
| Hi,
I am trying to show some of the nodes as hyperlinks with code like this.
<wps:if navigationAvailable="yes" screen=" Home,LoggedIn,LoggedOut,ErrorNotAuthoriz
ed">
<wps:navigation>
<wps:navigationLoop>
<%
String rowCssClass;
if (wpsSelectionModel.isNodeSelected(wpsNavNode))
rowCssClass = "wpsNavSelectedNode";
else
rowCssClass = "wpsNavUnSelectedNode";
String selectURL = null;
if (wpsNavNode.getContentNode() != null){
if (! com.ibm.portal.content.ContentNodeType.LABEL.equals(wpsNavNode.getContentNode().getContentNodeType())) {
selectURL = wpsNavModelUtil.createSelectionChangeURL(wpsNavNode);
}
}
String nodeTitle = com.ibm.wps.model.LocaleHelper.getTitle((com.ibm.portal.Localized)wpsNavNode, request);
if (selectURL != null) { %>
<a class="<%= rowCssClass %>" href="<%=selectURL%>" <% if (com.ibm.portal.content.ContentNodeType.EXTERNALURL.equals(wpsNavNode.getContentNode().getContentNodeType())) {%>target="_blank"<% } %> >
<% } %>
<span class="wpsNavLevel<%=wpsNavLevel%>"><%= nodeTitle %></span>
<% if (selectURL != null) { %>
</a>
<% } %>
</wps:navigationLoop>
</wps:navigation>
When I add a portlet to one of these hyperlinks - they are actually pages - and click it
the same page also appears as part of the main theme below.
I have created a new JSP with this code and included it in Default.jsp so that these links
appear above in the banner.
Is there any way to make these links works like they do if they were part of the main UI ?
Hope my question is clear.
Thanks,
Mohan
|
|