51黑料不打烊

Experience the Published Site experience-the-published-site

CAUTION
AEM 6.4 has reached the end of extended support and this documentation is no longer updated. For further details, see our . Find the supported versions here.

Browse to New Site on Publish browse-to-new-site-on-publish

Now that the newly created communities site has been published, browse to the URL displayed when creating the site, but on the publish server, e.g.

  • Author URL = http://localhost:4502/content/sites/engage/en.html
  • Publish URL = http://localhost:4503/content/sites/engage/en.html

To minimize confusion as to which member is signed in on author and publish, it is suggested to use different browsers for each instance.

When first arriving at the published site, the site visitor would typically not already be signed in and would be anonymous.

http://localhost:4503/content/sites/engage/en.html http-localhost-content-sites-engage-en-html

chlimage_1-311

Anonymous Site Visitor anonymous-site-visitor

An anonymous site visitor sees the following in the UI:

  • Title of the site. Which is Getting Started Tutorial
  • No profile link
  • No messages link
  • No notifications link
  • Sarch field
  • Log in link
  • The brand banner
  • Menu links for the components included in the Reference Site Template

If you select various links, you will find they are in read-only mode.

Prevent anonymous access on JCR prevent-anonymous-access-on-jcr

A known limitation exposes the community site content to anonymous visitors through jcr content and json , though allow anonymous access is disabled for the site鈥檚 content. However, this behavior can be controlled using Sling Restrictions as a workaround.

To protect your community site鈥檚 content from access by anonymous users through jcr content and json , follow these steps:

  1. On AEM Author instance, go to https://<host>:<port>/editor.html/content/site/<sitename>.html.

    note note
    NOTE
    Do not go to the localized site.
  2. Go to Page Properties.

    site-authentication

  3. Go to Advanced tab.

    page-properties

  4. Enable Authentication Requirement.

  5. Add the path of the login page. For example, /content/......./GetStarted.

  6. Publish the page.

Trusted Community Member trusted-community-member

This experience assumes Aaron McDonald was assigned the roles of community manager and moderator. If not, return to the author environment to modify the site settings and select Aaron McDonald as both community manager and moderator.

In the upper right corner, select Log in, and sign with username 鈥渁aron.mcdonald@mailinator.com鈥 and password 鈥減assword鈥. Notice the ability to sign in with Twitter or Facebook credentials.

chlimage_1-312

Once signed in, notice there is a new menu item, Administration, which appears because the member was given the role of Moderator. Now selecting various links is more interesting.

chlimage_1-313

Notice the Calendar page is the home page because the chosen Reference Site Template included the Calendar function first, followed by Activity Stream function, Forum function, and so on. This structure is visible from the Site Template console or when modifying site properties in the author environment:

chlimage_1-314

NOTE
For more information on Communities components and functions, visit

View the basic forum feature by selecting the Forum link.

Members are able to post a new topic or follow a topic.

Site visitors are able to view posts and sort them in various ways.

chlimage_1-315

Since Aaron is a group administrator, selecting the Groups link will allow Aaron to create a new community group by selecting a group template, image, whether the group is open or secret, and inviting members.

This is an example where a group is created in the publish environment.

Groups may also be created in the author environment and managed within the community site in the author environment (the Community Groups console). The experience of creating groups on author is next in this tutorial.

chlimage_1-316

Create a Reference Group:

  1. Select New Group

  2. Settings tab

    • Group Name: Sports
    • Description: A parent group for various sporting groups
    • Group URL Name: sports
    • select Open Group (allow any community member to participate by joining)
  3. Template tab

    • Select Reference Group (contains a groups function in its structure to allow nested groups)
  4. Select Create Group

chlimage_1-317

After new group is created, select the new Sports group in order to create two groups (nested) within it. As a site structure can not begin with the groups function, after opening the Sports group, it is necessary to select the Groups link:

chlimage_1-318

The second set of links, beginning with Blog, belong to the currently selected group, the Sportsgroup. By selecting the Sports鈥 Groups link, it is possible to nest two groups within the Sports group.

As an example, add two n ew groups.

  • One named Baseball

    • Leave it set as an Open Group (r