5.2 Creating and Maintaining Communities

Communities are very much like Organizations except that they are not hierarchical. They are designed instead to be islands to themselves which anyone from any organization (or from no organization at all) can join. Use Communities in any situation where you need to cut across the organizational structure of your portal, or where you have a site that would apply to almost anybody. For example, the home page for the Intranet is probably best placed in a community that any member of the portal can access.

Communities are groupings of pages and users based on shared interests or skills. And, a user can belong to any number of communities. Examples of communities might include:

  • A human resources community where staff members discuss issues related to health insurance.

  • A tech support community of users who have the skills to provide technical support to an organization.

  • A marketing community where marketing personnel shares marketing and corporate information.

The Dashboard default home page is in a community called Guest, and this is where you would put your public web site. As you can see, there are several scenarios in which you would want to use something like a community instead of an organization, and this is why they have a distinct role within Liferay Portal.

Communities can be created and managed in two ways. The first is through the Control Panel, like every other user/page collection. The second is through the My Communities portlet, which can be added to any page. Why two ways? Because the My Communities portlet also doubles as a way to navigate from community to community, and allows users to browse the list of communities.

Permissions can be assigned to users to delegate community management tasks. For more information, see Section 11.0, Portal and Community Permissions.

Every community must have at least one page (represented by a tab) to be active, but there is no limit on the number of pages that a community can have.

After a community is named, define its characteristics and add content pages. Consider the following:

  • Every community must have at least one page (represented by a tab) to be active, but there is no limit on the number of pages that a community can have.

  • Pages can be private or public. A public page can be accessed by a guest who has the appropriate URL. A private page can only be accessed by users who are logged in and assigned to the community.

  • URLs must be defined for public and private pages.

  • A default look and feel can be set for all private and public pages.

NOTE:You are already a member of the organizations you create. By creating an organization, you become both a member and have the Organization Owner role, which gives you full rights to the organization.

To create and configure communities:

5.2.1 Creating a New Community

To create a community:

  1. Do one of the following:

    • Go to a page that has a My Communities portlet.

      Click Add Community.

    • Click Welcome and select Control Panel.

      Under Portal, select Communities.

      Click Add.

  2. Name the new community and optionally add a description.

  3. Select one of the following to indicate the type of community:

    • Open: Appears in the My Communities portlet and users can join and leave the community whenever they want.

    • Restricted: Appears in the My Communities portlet but users must request membership and be approved before joining.

    • Private: Does not appear in the My Communities portlet. Users are added manually by a community administrator.

  4. Deselect the Active check box to inactivate the community and no data can be added to it.

  5. Specify keywords in the Tags field to identify the community and leverage the portals tagging feature.

  6. Click Save.

5.2.2 Performing Actions on a Community

To configure a community:

  1. Do one of the following:

    • Go to a page that has a My Communities portlet.

    • Click Welcome and select Control Panel.

      Under Portal, select Communities.

  2. Click Action next to the community and select from the options to update and configure the community.

    • Edit: Edit the community definition.

    • Manage Pages: Create and manage public and private pages for the community. Also update community settings.

    • Assign User Roles: Assign community-scoped roles to users. By default, communities are created with three roles: Community Administrator, Community Member, and Community Owner. Assign one or more of these roles to users in the community. All members of the community get the Community Member role.

    • Assign Members: Takes you to a screen where you can search and select users in the portal to be assigned to this community as members.

    • Join/Leave: If you are not a member of the community, you will have a Join or Request Membership option. If you are a member of the community you will see an option to leave the community.

    • Delete: Users with administrative access to the portal or who are owners of the community can delete it.

  3. Click Save.

5.2.3 Updating Community Settings

Various settings can be configured for each community including a friendly URL, a custom logo, generation of a sitemap structure to notify search engines, and monitoring through Google Analytics.

To update the settings for a community:

  1. Do one of the following:

    • Go to a page that has a My Communities portlet.

    • Click Welcome and select Control Panel.

      Under Portal, select Communities.

  2. Click Action next to the community and select Manage Pages.

  3. Click the Settings tab.

  4. Select from the following tabs to specify settings for the community.

    • Staging: Activate staging.

    • Virtual Host: Specify a public and private virtual host that maps to the public and private friendly URL. Also specify a friendly URL that is used for both public and private pages.

    • Sitemap: Generate a sitemap to notify Google and Yahoo of the structure of the community pages.

    • Monitoring: Specify a Google Analytics ID to setup tracking for community pages in an existing Google Analytics configuration.

    • Logo: Add a custom logo for the community.

    • Merge Pages: Configure the top level pages to merge with the top level Guest community. This helps user navigate between the two sites seamlessly.

  5. Click Save.