01-09-07 06:57 AM
Hi,
I am trying to show some of the nodes as hyperlinks with code like this.
<wps:if navigationAvailable="yes" screen="Home,LoggedIn,LoggedOut,ErrorNotAu
thorized">
<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.getCont
entNode().getContentNodeType())) {
selectURL = wpsNavModelUtil.createSelectionChangeURL(wpsNavNode);
}
}
String nodeTitle = com.ibm.wps.model.LocaleHelper.getTitle((com.ibm.portal.L
ocalized)wpsNavNode, request);
if (selectURL != null) { %>
<a class="<%= rowCssClass %>" href="<%=selectURL%>" <% if (com.ibm.portal.co
ntent.ContentNodeType.EXTERNALURL.equals(wpsNavNode.getContentNode().getCont
entNodeType())) {%>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 th
at 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
[ Post a follow-up to this message ]
|