This part contains the following:
This chapter contains the following:
After installing the Portal Server software, the welcome page at http://host:port/portal/welcome/index.jsp includes links to the three sample portals. Select the Community Sample to view the Community Sample portal anonymous desktop.
The Community Sample desktop anonymous page, by default, includes:
A customizable header with logo, title, help button, and date/time info and a footer with links to Sun resources
A breadcrumb with link to get back to the Welcome page
The Communities Home page can be viewed by logging in as test/test. To participate in the Community Sample, users must be in the CommunitySample organization. The Communities home page allows users to browse and/or search communities, view list of their communities, preview and visit interesting communities, and create communities using the community portlets. For more information on the community portlets, see Overview of Community Portlets.
By default, for each community that the user is a member of, they will have a community page that allows the user to interact with the services, leave the community, and remove the community if the user is the owner. The community visitor page allows users to preview a community and join the community.
For more information on customizing the user interface of the sample portal, see Chapter 15, Customizing the Community Sample Portal User Interface.
After installation and configuration of the Community Sample PAR file, content for Community Sample portal is deployed in the following directories.
This directory contains the templates for the Community Sample and the associated properties files for the templates.
Provides dynamic content including JavaServerTM Pages (JSPTM), tag library for Sun JavaTM Web User Interface Components' theme (portletSetupTags.tld), properties file, and containers.
Provides properties for the Community Sample. If you modify properties in this file, restart the server for the new values to take effect.
Provides static content including JavaScript, images, style sheet (css/desktop.css), and channel content.
The Portal Server software includes:
A two column table layout with thin channels on the left and wide channels on the right.
A menu navigated content layout with menu on the left and selected content on the right.
A WYSIWYG layout to allow users to create wiki-like content and page layout including support for wiki plugins, attachments, editing, syntax and so on.
A layout similar to Left Navigation with only Blog and Wiki portlets available on the page.
Custom templates can be added to the system. See Creating and Modifying a Template for more information.
The community portlets must construct URLs that access and control the community sample in which they are executing. The attributes described in this chapter define how these community URLs are constructed.
Specifies the top level container for the community sample, as well as the URL parameter that causes this container to select a new contained channel.
Specifies the name of the container that defines the community home page.
Specifies the name of the community portlet channel used to create new communities.
In most cases, you will not need to change these values. You may want to change them if, for example, you are designing a new sample from scratch, and are using different container and channel names than the defaults used in the community sample. To help understand how the system uses these attributes, some tokenized example community URLs are provided below:
Access community home page.
Access a community page, for community ID X.
Access the community create portlet.
See also Technical Note: Adding Sun Java System Portal Server 7.1 Community Services to Your Portal.
This chapter contains the following:
This section contains the following:
The Community Sample includes a display profile loaded at install time that contains the definitions of containers, channels, and providers used by the sample. The sample relies on the display profile's aggregation methods (see Part III, Display Profile, in Sun Java System Portal Server 7.1 Technical Reference for more information) and the community templates for displaying communities and their contained portlets.
The display profile for the sample is a set of containers which handle basic aggregation and display operations. After installation, directories and files effecting the user interface of the sample portal can be found in the PortalServer-DataDir/portals/portal-ID/desktop/community_sample directory.
The Community Sample relies on a combination of two stylesheets (see Stylesheets for the Community Sample) which define the fonts, colors, and images used for its user interface. There are intentionally no conflicts in the selection of these two stylesheets.
The Community Sample uses the following to render the sample portal user interface:
This file in PortalServer-DataDir/portals/portal-ID/desktop/community_sample/ directory contains the header display for all sample containers. It controls user interface for the sample by including the stylesheets.
This file in PortalServer-DataDir/portals/portal-ID/desktop/community_sample/ directory is included by containers (CommunityParentContainer) and closes HTML tags (namely, body and html tags) as well as displays some footer information.
This file in PortalServer-DataDir/portals/portal-ID/desktop/community_sample/ directory is included by the header.jsp file and provides data/time info based on the user's time zone setting. For anonymous user, the default server time zone is used. There is currently no user interface style in this file.
This file in PortalServer-DataDir/portals/portal-ID/desktop/community_sample/ directory is included by the header.jsp and provides a rudimentary breadcrumb used in the sample. The user interface in this file is controlled by the desktop.css file.
This file in PortalServer-DataDir/portals/portal-ID/desktop/community_sample/ directory provides menubar used by JSPDynamicSingleContainer.
This file in PortalServer-DataDir/portals/portal-ID/desktop/community_sample/ directory provides header used by JSPDynamicSingleContainer.
This file in PortalServer-DataDir/portals/portal-ID/desktop/community_sample/ directory wraps portlet and Provider content in an edit page.
This file in PortalServer-DataDir/portals/portal-ID/desktop/community_sample/ directory provides JavaScript for popup and detachment of channels in their own browser window.
This file in PortalServer-DataDir/portals/portal-ID/desktop/community_sample/ provides single tag to include Sun JavaTM Web User Interface Components theme support for stylesheet and JavaScript functionality.
This directory (under PortalServer-DataDir/portals/portal-ID/desktop/classes/ directory) contains the files that allows a user to change the content and layout of portlets contained in an available container or community template container for which the isEditable property in the display profile is true. If true, the header.jsp file includes a link to Page Preferences in the breadcrumb area at right.
This directory (under PortalServer-DataDir/portals/portal-ID/desktop/classes/ directory) contains the files used for allowing a user to change account preferences such as name, password, timezone, and so on.
This directory (under PortalServer-DataDir/portals/portal-ID/desktop/classes/ directory) is an instance of JSPSingleContainerProvider and includes the default channel defined in the portal server console for the sample.
This container includes a set of channels representing the anonymous user's sample display and it is an instance of the JSPTableContainerProvider.
This container includes the set of channels representing the logged in user's sample display and it is an instance of the JSPTableContainerProvider.
This directory (under PortalServer-DataDir/portals/portal-ID/desktop/classes/ directory) contains a version of the JSPEditContainer's default files with different styles matching the overall style of the Community Sample.
This channel is included in the CommunityAnonymousContainer's display profile definition and provides the user with the ability to login to the sample or create a new account.
This directory includes error templates. Style for these file's user interface is defined in the two stylesheets mentioned above.
This directory (under PortalServer-DataDir/portals/portal-ID/desktop/classes/ directory) contains a version of the JSPTableContainer's default files with different styles matching the overall style of the Community Sample.
This directory (under PortalServer-DataDir/portals/portal-ID/desktop/classes/ directory) provides for left-side navigation layout.
This directory is under PortalServer-DataDir/portals/portal-ID/desktop/community_sample directory.
Provides for Community look and feel changes for this provider.
Provides for Community look and feel changes for this provider.
This file in PortalServer-DataDir/portals/portal-ID/desktop/community_sample/ directory provides properties used by the template files in the error directory. The properties in this file are swapped by the error templates in the PortalServer-DataDir/portals/portal-ID/desktop/community_sample/error directory at runtime.
This file in PortalServer-DataDir/portals/portal-ID/desktop/classes/ directory provides properties for the Community Sample portal. These properties are used by the Community Sample portal JSPs.
This file includes properties for the Community Sample portal desktop:
Header, Masthead, Breadcrumb, and footer
Page Preferences link and Account Settings link
Login channel
channelMenubar and popupChannelMenubar
communityParentContainer/single.jsp file
JSPEditContainer/edit.jsp file
JSPMenuContainer/menumain.jsp file
If you modify this file, you must restart the server for the changes to take effect.
This JAR file includes the stylesheet that controls many defaults properties for the Community Sample including: font, colors, and the like not found in the desktop.css file.
For more information on the Sun Java Web User Interface Components stylesheet, see Theme for Sun Java Web User Interface Components Tech Note.
Augmentation of style is included for other components through an additional stylesheet located with the rest of the sample's web-src in the web container's web source directory under PortalServer-DataDir/portals/portal-ID/web-src/community/css directory. This stylesheet is not browser specific and modifications to this file only effects the sample portal's overall appearance and that of the containers used.
This section includes the following:
Log in to the Portal Server and change directories to PortalServer-DataDir/portals/portal-ID/web-src/community/css.
Rename the desktop.css file to desktop.css.orig.
For example, type mv desktop.css desktop.css.orig.
Copy your custom stylesheet (CSS file) to this directory or modify the desktop.css file.
Log in to the Portal Server host and edit the desktop.css file in the PortalServer-DataDir/portals/portal-ID/web-src/community/css directory.
Modify the:
To modify the logo.
To modify the title in the header.
Log in to the Portal Server management console and select Portals and the portal-ID.
Select CommunitySample from the Select DN pull-down list and select the Manage Containers and Channels link.
Change the view type from Community Parent Containe to DP XML Tree and select CommunityHomeContainer.
Select New Channel or Container link to add channels to the CommunityHomeContainer.