WebSphere Portal Server - Nodes links in banner

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > January 2007 > Nodes links in banner





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Nodes links in banner

2007-01-09, 1: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,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
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com