Sun Java System Portal Server 7 Developer Sample Guide

Customizing DiscussionLite Channel

This section contains the following:

ProcedureTo Customize the DiscussionLite Channel Link Display Window

Steps
  1. Change directory to PortalServer-DataDir/portals/portal-ID/desktop/default/DiscussionLite directory and edit the following JSP files.

    • display.jsp - In this file, comment out or delete the following line:


      <a href="<%=desktopPathInfo%>?last=false&Discussions_dmode=vl&did=<%=Encoder.urlEncode(url)%>"><B><search:getValue soifAttribute="title" escape="true" truncate="28"/></B></a>
    • discussionLiteContent.jsp - In this file, comment out or delete the following lines. :


      Map pathInfo = new HashMap();
      pathInfo.put("action", "content");
      pathInfo.put("provider", "JSPDynamicSingleContainer");
      pathInfo.put("JSPDynamicSingleContainer.selectedChannel", "Discussions");
      pathInfo.put("last", "false");
      pageContext.setAttribute("pathInfo", pathInfo);
      <dtpc:getDesktopURL id="desktopPathInfo" pathinfo="$pathInfo"/>
  2. Replace all occurrences of desktopPathInfo with dt.

    The desktopPathInfo ensures that links are always displayed in the Discussions channel in a JSPDynamicSingleContainer. Remove this if you want links to be displayed in the Discussions Channels on the same tab. For example, replace the following line:


    <td align=center><font size="-1"><a target="ps_main" href="<%=desktopPathInfo%>?Discussions_dmode=cmt">New Discussion</a></font>

    with the following:


    <td align=center><font size="-1"><a target="ps_main" href="dt?Discussions_dmode=cmt">New Discussion</a></font>

    This procedure will work only if Discussions and DiscussionLite are displayed on the same tab as in the sample portal. DiscussionLite links will be displayed in the Discussions channel on the right side on the collaboration tab.

ProcedureTo Display DiscussionLite on the Front tab

Steps
  1. Modify MyFrontPageTabContainer and add DiscussionLite to the available and selected lists. For example:

    In the Portal Server management console, use the online help to display the DiscussionLite channel on the desktop.

  2. Modify the DiscussionLite channel display profile isEditable property and set it to true.

  3. Log in and verify.