Prezeráte obsah pomocníka verzie:

As of AEM 6.1 Communities, the easiest way to create a sample page is to create a simple community site, consisting simply of a Page function.   

This will include a parsys component so that you can enable components for authoring.

Another option for exploratoin with sample components is to use the features presented in the Community Components Guide.

Create a Community Site

This is very similar to creating a new site described in Getting Started with AEM Communities.

The major difference is this tutorial will create a new community site template that only contains the Page function in order to create a simple community site free of other features (other than the pre-wired features basic to all community sites).

Create New Site Template

To get started, create a simple community site template.

From global navigation on an author instance select Tools, Communities, Site Templates.

chlImage_1
  • select Create button
  • BASIC INFO
    • Name : Single Page Template
    • Description : A template consisting of a single Page function.
    • select Enabled
chlImage_1
  • STRUCTURE
    • drag a Page function to the Template Builder
    • for Configuration Function Details, enter
      • Title : Single Page
      • URL : page
chlImage_1
  • select Save for the configuration
  • select Save for the site template

Create New Community Site

Now create a new community site based on the simple site template.

After creating the site template, from global navigation select Communities, Sites.

chlImage_1
  • select Create icon
  • step 1 - Site Template
    • Title : Simple Community Site
    • Description : A Community Site consisiting of a single page for experimentation.
    • Community Site Root : (leave blank)
    • Community Site Base Language : English
    • Name : sample
      • url = http://localhost:4502/content/sites/sample
    • Template : choose Single Page Template

 

chlImage_1
  • select Next
  • step 2 - Design
    • select any design
  • select Next
  • select Next
    (accept all default Settings)
  • select Create
chlImage_1

Publish the Site

chlImage_1

From the community sites console, select the publish icon to publish the site, by default to http://localhost:4503.

Open the Site on Author in Edit Mode

chlImage_1

Select the open site icon to view the site in edit mode.  

The URL will be http://localhost:4502/editor.html/content/sites/sample/en.html

chlImage_1

On the simple home page it is possible to see what is pre-wired through the community functions and templates, and play with adding and configuring community components.

View Site on Publish

After publishing the page, open the page on the publish instance to experiment with the features as an anonymous site visitor, signed in member, or an administrator.  The Administration link visible in the author environement will not appear in the publish environment unless an administrator signs in.

Licencia na používanie tohto diela sa poskytuje v súlade s podmienkami licencie Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Na príspevky v sociálnych sieťach Twitter™ a Facebook sa nevzťahujú podmienky licencií Creative Commons.

Právne upozornenia   |   Zásady ochrany osobných údajov online